Cannot find module for ember-fullcalendar
See original GitHub issueAfter doing the first step listed in the README, embroider starts throwing error:
Build Error (WaitForTrees)
Cannot find module './vendor/fullcalendar/dist/fullcalendar.js' from '/tmp/embroider/606e06/node_modules/@embroider/synthesized-vendor'
Stacktrace:
- broccoliBuilderErrorStack: Error: Cannot find module './vendor/fullcalendar/dist/fullcalendar.js' from '/tmp/embroider/606e06/node_modules/@embroider/synthesized-vendor'
at Function.resolveSync [as sync] (/home/iamareebjamal/git/open-event-frontend/node_modules/resolve/lib/sync.js:89:15)
at AppBuilder.impliedAddonAssets (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:135:55)
at AppBuilder.impliedAssets (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:99:27)
at AppBuilder.insertEmberApp (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:207:36)
at AppBuilder.prepareAsset (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:333:18)
at AppBuilder.prepareAssets (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:343:18)
at AppBuilder.updateAssets (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:411:27)
at AppBuilder.build (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/app.js:505:38)
at WaitForTrees.buildHook (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/build-stage.js:37:31)
at runMicrotasks (<anonymous>)
- code: [undefined]
- codeFrame: Cannot find module './vendor/fullcalendar/dist/fullcalendar.js' from '/tmp/embroider/606e06/node_modules/@embroider/synthesized-vendor'
- errorMessage: Cannot find module './vendor/fullcalendar/dist/fullcalendar.js' from '/tmp/embroider/606e06/node_modules/@embroider/synthesized-vendor'
at WaitForTrees (@embroider/compat/app)
-~- created here: -~-
at new Plugin (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/node_modules/broccoli-plugin/dist/index.js:45:31)
at new WaitForTrees (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/wait-for-trees.js:30:9)
at CompatApp.get tree (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/build-stage.js:26:16)
at CompatApp.<anonymous> (/home/iamareebjamal/git/open-event-frontend/node_modules/typescript-memoize/dist/memoize-decorator.js:67:52)
at new PackagerRunner (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/core/src/to-broccoli-plugin.js:10:26)
at Object.defaultPipeline [as compatBuild] (/home/iamareebjamal/git/open-event-frontend/node_modules/@embroider/compat/src/default-pipeline.js:35:12)
at module.exports (/home/iamareebjamal/git/open-event-frontend/ember-cli-build.js:95:39)
at Builder.readBuildFile (/home/iamareebjamal/git/open-event-frontend/node_modules/ember-cli/lib/models/builder.js:49:14)
at Builder.setupBroccoliBuilder (/home/iamareebjamal/git/open-event-frontend/node_modules/ember-cli/lib/models/builder.js:63:22)
at new Builder (/home/iamareebjamal/git/open-event-frontend/node_modules/ember-cli/lib/models/builder.js:29:10)
-~- (end) -~-
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
node.js - EmberJS 2.15.1 Could not find module `fullcalendar`
1 and I'm attempting to switch everything over to NPM from Bower. I have been playing around trying to get fullcalendar to cooperate,...
Read more >EmberJS 2.15.1 Could not find module `fullcalendar`-ember.js
To resolve your third party library with import, ember needs vendor shim. you can check here simply run ember generate vendor-shim fullcalendar.
Read more >@mariana-tek/ember-fullcalendar - npm
An ember add-on for FullCalendar. Latest version: 1.0.1, last published: 3 years ago. Start using @mariana-tek/ember-fullcalendar in your ...
Read more >The includeScheduler option does not lead to ... - GitHub
I fiddled around with ember-fullcalendar (in a fresh Ember ... const EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports ...
Read more >"Could not find module errors" at runtime for some packages
The issue is caused by the use of eval by ember-auto-import . When running as a Chrome extension it appears that the CSP...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have seen the node-assets thing working correctly under embroider, so I’m not sure if that’s it. I’ll need to take a look.
On Sat, May 23, 2020 at 6:45 AM Areeb Jamal notifications@github.com wrote:
I don’t know too much about details, but it seems ember-fullcalendar uses old ember-cli-node-assets add-on. It is used to help developers to import dependencies from the
node_modules
directory IIRC. However, it’s been superseded by ember-auto-import for a long time.Perhaps this is the reason for the throwing error, and I suggest to contact the author(s) of ember-fullcalendar to see if they can help you to find the root cause. I think it’s normal that a lot of ember add-ons doesn’t work well with Embroider at the moment, I would not surprise that if ember-cli-node-assets doesn’t work with Embroider for example.