Import global files

hello im moving react project to meteor,
before i was using .env file with this parameter
NODE_PATH=./src
so i can import files directly from every where inside my project

but i cant use it on meteor any solutions?

hello, any one can help?

I don’t think your question is very clear, but I’ll take a stab at it anyway.

I’m assuming that NODE_PATH=./src was something you used with create-react-app. Meteor works differently - better! You can go ahead and import from anywhere. You don’t need a .src folder anymore - the whole project is a .src folder if you wish. Just remember to put your files in ‘/imports’.

It looks like you need to read about the structure of a Meteor project. It’s quite straightforward.

1 Like