fastboot-app-server icon indicating copy to clipboard operation
fastboot-app-server copied to clipboard

addon work in ember-cli-fastboot but not in fast boot-app-server

Open vreyesd opened this issue 9 years ago • 1 comments

I create a little test project https://github.com/vreyesd/testMomentFastboot . It run well in fastboot mode with ember fastboot but with boot-app-server (server in server folder) have a error

Error while processing route: home Cannot find module 'moment-timezone' Error: Cannot find module 'moment-timezone'

vreyesd avatar Sep 13 '16 21:09 vreyesd

Looking at your sample application, I believe you are not including moment correctly. For third-party npm modules, it is recommended to use the ember-browserify addon. Install the addon, and change the import of Moment to:

import moment from 'npm:moment';

And see if this resolves your issue.

kyleshevlin avatar Oct 13 '16 18:10 kyleshevlin