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.

MutationEvent.js reference to not existing MutationEvent-impl.js Webpack compiler fails 9.12.0

See original GitHub issue

Hello,

I use jsdom for svg generation and I compile it with webpack to one file. The webpack compiler fails with following error:

ERROR in ./~/jsdom/lib/jsdom/living/generated/MutationEvent.js Module not found: Error: Cannot resolve 'file' or 'directory' ../events/MutationEvent-impl.js in /home/test/work/git/j5-framework/j5/src/webui/node_modules/jsdom/lib/jsdom/living/generated @ ./~/jsdom/lib/jsdom/living/generated/MutationEvent.js 174:13-55 I checked different versions of jsdom and until version 8.5.0 the missing MutationEvent-impl.js was still in the package. From version 9.0.0 it disappears. From version 9.0.0 MutationEvent.js is also not reference anymore in jsdom/living/index.js. But the file is still in the npm package under living/generated/MutationEvent.js

I assume it has been removed at some stage but the “npm run convert-idl” doesn’t clean the “generated” folder?

In current version 9.12.0 the file ’ MutationEvent.js’ is still in the npm package.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
domeniccommented, Mar 16, 2017

Yeah, we probably have some leftover files in the package. You should probably use a bundler tool like browserify which determines the files by crawling the dependency graph, instead of one like webpack which apparently just looks at whatever is on the filesystem. That’s a bad strategy which we don’t support.

1reaction
domeniccommented, May 6, 2017

Fixed now, and probably in a way that won’t reoccur 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack suddenly fails to compile due to "Module not found ...
It's an issue with the Webpack or Jest configuration. Absolute and relative paths can both be used, but be aware that they will...
Read more >
Webpack Dev Server not reporting errors on subsequent ...
On initial compile with the webpack dev server, this correctly throws an error. TS2322: Type '"word"' is not assignable to type 'number'. >...
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