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.

Some files in lib/jsdom/living/generated directory require non-existent files

See original GitHub issue

I installed v. 8.3.1 and ran into the following issue. The file lib/jsdom/living/generated/DOMPointReadOnly ends with const Impl = ("../nodes/DOMPointReadOnly-impl.js"), and the file ../nodes/DOMPointReadOnly-impl.js doesn’t exist. Also, the file ‘ScrollIntoViewOptions’ contains const ScrollOptions = require("./ScrollOptions");, which can’t be found too. I am trying to use Webpack and it throws errors because of those require statements. The possible workaround is to use module.noParse option in Webpack, but it doesn’t work for me for some reason (maybe because the skipped files are expected to have no call to require). Before that I used v. 8.1.1 of jsdom and don’t remember facing this problem. Am I doing something wrong now or is this a jsdom issue? Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
exahcommented, Jul 26, 2016

I’m still having issue with jsdom@9.4.1 and Meteor + Webpack

=> Errors prevented startup:

   While processing files with webpack:webpack (for target os.osx.x86_64):
   app/server.js: ./~/jsdom/lib/jsdom/living/generated/FileReader.js
   Module not found: Error: Cannot resolve 'file' or 'directory' ../file-api/FileReader-impl.js in
   /Users/john/Developer/Strelka/draft-blog/node_modules/jsdom/lib/jsdom/living/generated
   resolve file
   /Users/john/Developer/Strelka/draft-blog/node_modules/jsdom/lib/jsdom/living/file-api/FileReader-impl.js doesn't exist
   ...
0reactions
azotovacommented, Apr 16, 2016

@domenic Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsdom does not fetch scripts on local file system - Stack Overflow
The local path is perfectly relative to the working dir of the shell / actual node script. To be honest i don't even...
Read more >
shadow-cljs 2021-08-13 - Slack Archive
and this outputs a nbb_reagent.js file and a nbb_promesa.js file ... node_modules/jsdom/lib/jsdom/living/generated/AbortSignal.js:13 ...
Read more >
Writing Files with Node.js and JSDOM | by Danny Lee - Medium
After receiving that error, and some research, I decided to just write the script as a Node.js file and since I only need...
Read more >
Configuring Jest compiled - w3resource
Jest's configuration can be defined inside the package.json file of your ... const {defaults} = require('jest-config'); module.exports ...
Read more >
acromyrmex - npm
You can find the source HTML file in the public folder of the generated ... If you need to disable autoprefixing for some...
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