Jenna Kwon
Jenna Kwon

Reputation: 1252

meteor can't find global variable in node_modules

I want to use packages such as shelljs(https://atmospherejs.com/izzilab/shelljs) but I am getting an error, "can't find variable: shell". It is an npm package wrapped around for Meteor. Why wouldn't the variable be global scoped though?

Does anyone know what the best way to list all files in a local directory is within meteor client code?

Upvotes: 0

Views: 66

Answers (1)

Faysal Ahmed
Faysal Ahmed

Reputation: 1542

if your project runs on the version of meteor 1.3 and you're writing everything in the imports folder, then you need to use export/import feature of es6 modules.

Upvotes: 1

Related Questions