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.

Module not found error occured when npm install on Windows 10

See original GitHub issue

Describe the bug

I was just easily try to clone and npm install on windows pc .

git clone https://github.com/conversejs/converse.js.git conversejs
cd conversejs &&  npm install 

the error is like and many

ERROR in ./src/templates/form_input.html
Module not found: Error: Can't resolve 'Dappconversejs
ode_moduleslodashescape.js' in 'D:\app\conversejs\src\templates'
 @ ./src/templates/form_input.html 1:16-107
 @ ./src/converse-register.js
 @ ./src/converse.js
 @ ./src/entry.js

i followed the document of install 3rd development libraries 😃 maybe webpack configuration wrong ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deleolajidecommented, Oct 26, 2021

Use WSL2 on Windows 10. It is just much easier and you run Linux on the same folders as Windows

image

image

0reactions
sky-dtucommented, Oct 26, 2021

We use GNU Make to build files (see the Makefile) and making builds on Windows is not supported.

I think the issue here is that Lerna needs to be run first.

You can try the following:

npm run lerna
npm rebuild node-sass
npm run dev

@jcbrand I am still getting the same issue with the above commands as well as with the make dev command.

ERROR in ./src/i18n/af/LC_MESSAGES/converse.po 1:1
Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # Afrikaans translations for Converse.js package.
| # Copyright (C) 2013 Jan-Carel Brand
| # This file is distributed under the same license as the Converse.js package.
 @ ./src/i18n/ lazy ^\.\/.*\/LC_MESSAGES\/converse\.po$ chunkName: locales/[request] namespace object ./af/LC_MESSAGES/converse.po
 @ ./src/i18n/index.js 97:12-99:46
 @ ./src/converse.js 7:0-14
 @ ./src/entry.js
Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed ... The main cause of the npm command not found error is that npm is not...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >
This npm install is not working on Windows - node.js
If you have existing Node.js installed, I recommend uninstalling it like the process given by LOTUSMS above: · Run nvm or command -v...
Read more >
Common errors | npm Docs
Broken npm installation · Random errors · No compatible version found · Permissions errors · Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on Windows 7 ...
Read more >
npm command not found | Career Karma
On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also...
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