adopted-ember-addons / ember-moment

MIT License
399 stars 122 forks source link

Problem with fastboot #226

Closed zion03 closed 7 years ago

zion03 commented 7 years ago

Trying to start my application in fastboot mode and receive: Error: Unable to require module 'moment-timezone' because it was not in the whitelist.

jasonmit commented 7 years ago

Did you add it to fastboots whitelist?

jasonmit commented 7 years ago

https://github.com/ember-fastboot/ember-cli-fastboot#whitelisting-packages

zion03 commented 7 years ago

Thnaks, didn't notice this section in documentation. I added to package.json "fastbootDependencies": [ "moment-timezone" ] And having a problem: Cannot find module 'moment-timezone' What I'm doing wrong?

zion03 commented 7 years ago

Any suggestions, I still have this problem. How to add fastbootDependencies correctly

Thanks

zion03 commented 7 years ago

Solved. Application also require "moment-timezone": "^0.5.0",

ehubbell commented 6 years ago

@zion03 Running into the same issue that you had here. Curious, how exactly did you inject "moment-timezone": "^0.5.0" into your project beyond the package.json file? I'm assuming you did this via a fastboot initializer but am not 100% as the documentation on this doesn't give a fool-proof example to work from. Thanks in advance!