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 './src/init'

See original GitHub issue
  • Library Version: 0.20.2

  • Operating System: OSX 10.12

  • Node Version: 6.2.0

  • NPM Version: 3.8.9

  • Language: ESNext

Current behavior: au new and au run are entered as instructed. Instead of building and running, this error is shown:

{ Error: Cannot find module './src/init'
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/home/Sites/compluter-au/node_modules/vinyl-fs/node_modules/gulp-sourcemaps/index.js:4:9)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3) code: 'MODULE_NOT_FOUND' }

Expected/desired behavior: The Aurelia CLI should build and or run when commanded.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
northamericancommented, Oct 13, 2016

temporary fix: npm install gulp-sourcemaps@2.0.0 --save au run

0reactions
ghostcommented, Oct 13, 2016

@PWKad I just created a new project and can confirm the update gulp-sourcemaps pushed fixes the issue. Can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 - Stack Overflow
Getting Error: Cannot find module './src/init' when trying to initialize a react native app · Subscribe to RSS.
Read more >
Issues - GitHub
NPM install error | Error: Cannot find module './src/init' #2296 · Comments · Footer.
Read more >
I have an error it says: Error: Cannot find module '.env'
[nodemon] app crashed - waiting for file changes before starting… My .env file code is below: SECRET_KEY=super_secret_key_you_should_change.
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
Error: Cannot find module 'express' - YouTube
Error: Cannot find module 'express'Error: Cannot find module 'cors'Error: Cannot find module 'body-parser'Error: Cannot find module ...
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