question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module for ember-fullcalendar

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ef4commented, May 23, 2020

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 will raise a PR in the repo hopefully fixing the issue, thanks @nightire https://github.com/nightire for indication on what may be the problem

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/embroider-build/embroider/issues/442#issuecomment-633024998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACN6MQPFRNFSZ4U63ARV2TRS6SNJANCNFSM4MW4J6MQ .

1reaction
nightirecommented, May 23, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found