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.

npm start fails on Chrome OS

See original GitHub issue

Getting this even after running npm build start twice.

dandvexternal@penguin:~/squoosh$ npm start

> squoosh@1.0.0 start /home/dandvexternal/squoosh
> webpack serve --host 0.0.0.0 --hot

ℹ 「wds」: Project is running at http://0.0.0.0:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/dandvexternal/squoosh/src
ℹ 「wds」: 404s will fallback to /index.html
✖ 「wdm」:    147 modules

ERROR in   Error: Child compilation failed:
  Module build failed (from ./node_modules/prerender-loader/dist/prerender-loade  r.js):
  Error: Error:  Module not found. attempted require("url")
  
  - prerender-loader.js:198 
    [squoosh]/[prerender-loader]/dist/prerender-loader.js:198:35
  
  
  
  
  
  
  
  
  
  
  
  
  - eval
  
  - prerender-loader.js:206 
    [squoosh]/[prerender-loader]/dist/prerender-loader.js:206:37
  
  
  - Error: Error:  Module not found. attempted require("url")
  
  - compiler.js:79 childCompiler.runAsChild
    [squoosh]/[html-webpack-plugin]/lib/compiler.js:79:16
  
  - Compiler.js:296 compile
    [squoosh]/[webpack]/lib/Compiler.js:296:11
  
  - Compiler.js:553 hooks.afterCompile.callAsync.err
    [squoosh]/[webpack]/lib/Compiler.js:553:14
  
  
  - Hook.js:154 AsyncSeriesHook.lazyCompileHook
    [squoosh]/[tapable]/lib/Hook.js:154:20
  
  - Compiler.js:550 compilation.seal.err
    [squoosh]/[webpack]/lib/Compiler.js:550:30
  
  
  - Hook.js:154 AsyncSeriesHook.lazyCompileHook
    [squoosh]/[tapable]/lib/Hook.js:154:20
  
  - Compilation.js:1295 hooks.optimizeAssets.callAsync.err
    [squoosh]/[webpack]/lib/Compilation.js:1295:35
  
  
  - Hook.js:154 AsyncSeriesHook.lazyCompileHook
    [squoosh]/[tapable]/lib/Hook.js:154:20
  
  - Compilation.js:1286 hooks.optimizeChunkAssets.callAsync.err
    [squoosh]/[webpack]/lib/Compilation.js:1286:32
  
  
  - next_tick.js:77 process.internalTickCallback
    internal/process/next_tick.js:77:7
  

ℹ 「wdm」: Failed to compile.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dandvcommented, Nov 10, 2018

The breaking commit was 7616d3388369b0c195efc76700ff5f3b8d7aa44b.

0reactions
dandvcommented, Nov 11, 2018

This works as of 2ca97ef5866f66b1baaa3655f4a66427190f732a.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I install NPM on a Chromebook? - Stack Overflow
How do I add the node_modules folder? I tried navigating to /lib/node_modules/npm/scripts/ (per the link) but don't have a /lib/node_modules/ ...
Read more >
npm run test gives error on Chromebook · Issue #2373 - GitHub
Running npm run test on a chromebook resulted in: The CHROME_PATH environment variable must be set to a Chrome/Chromium executable no older than ......
Read more >
how to install npm on chromebook? - Google Support
how to install npm on chromebook? Hello, I have installed node for Javascript but there is no way i can install npm. I...
Read more >
Npm start suddenly stopped working : r/Crostini - Reddit
I used to be able to connect to my react application with localhost:3000 but suddenly I get the error localhost refuses to connect....
Read more >
Troubleshooting - Puppeteer
Make sure all the necessary dependencies are installed. You can run ldd chrome | grep not on a Linux machine to check which...
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