I am trying to run create-react-app and after entering npm start I am getting this error
Failed to compile.
Module not found: Error: Can't resolve 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app\node_modules\webpack-dev-server\client\index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app'
ERROR in Module not found: Error: Can't resolve 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app\node_modules\webpack-dev-server\client\index.js?protocol=ws%3A&hostname=0.0.0.0&port=3000&pathname=%2Fws&logging=none&reconnect=10' in 'C:\Users\sande\OneDrive\Desktop\project#1\client\my-app'
webpack compiled with 1 error
There is a problem while reading the directory because there is a # character in your file path. Do not use # and similar signs in your directory path. Good work.
I had the same error, I change my path and remove all # form it.
It should be like this #React/myProject/project#1 => React/myProject/project1
Thanks for the help everyone, it resolved the error.
Related
I am currently trying to get started with react native.
I set up the development environment referring to the documentation, but can't even pass the first step and create an empty project.
I am on Windows 11, Node 16.15.1, and NPM 8.12.2
I keep getting the following error when trying to init react-ative project with expo init awesomeProject
Error downloading and extracting template package: Error: npm exited with non-zero code: 1
× Something went wrong while downloading and extracting the template.
Can't read JSON file: D:\crna\awesomeProject\app.json
└─ Cause: Error: ENOENT: no such file or directory, open 'D:\crna\awesomeProject\app.json'
Does anyone has a suggestion ?
Don't really know what is the problem but i found a soluion that might help other people in the same situation as me! like said here just run in CMD instead of GitBash
Use sudo if on linux. And maybe Admin on windows.
sharp module is present in node_module folder but why it's showing error . I don't know what's the reason behind.Even I install sharp.but still getting error.If anyone know how to fix sharp module ?. In addition. when I try to install with yarn than got something else error.
C:\Users\4' is not recognized as an internal or external command,
operable program or batch file.
Error :
Could not load js config file D:\Mohsin-Work-Space\Strapi Backend Practice Session\project_strapi23\node_modules#strapi\plugin-upload\strapi-server.js:
Something went wrong installing the "sharp" module
The specified module could not be found.
\?\D:\Mohsin-Work-Space\Strapi Backend Practice Session\project_strapi23\node_modules#strapi\plugin-upload\node_modules\sharp\build\Release\sharp-win32-x64.node
I also run into this problem during my installation, and how I managed to fix it was to run the installation command as administrator and everything worked.
I am trying to execute a ReactJS application on my Windows 10 system using npm.
On running the execution script, it is giving me a compilation error that states:
Module not found: Can't resolve '../assets_new/fonts/lato_bold.woff' in '\src\assets_new\scss'
The file lato_bold.woff does exist in the given path, yet the script isn't able to locate it.
Can someone pls let me know how could this be resolved?
From this message:
Can't resolve '../assets_new/fonts/lato_bold.woff' in '\src\assets_new\scss'
It seems that you are trying to fetch lato_bold.woff from fonts folder in assests_new but you are searching in scss folder of assests_new. Try changing it to fonts folder.
Details: running OS 10.11, using Angular version 1.2.6, npm 5.3.0, node 8.2.0.
So I'm learning Angular for the first time, and I keep running into the same problem where if I create a new project using 'ng new [PROJECT]' and then use 'ng serve' it compiles and displays properly, but then if I try to use 'ng g c [NEW_COMPONENT]' then it breaks the project. Specifically, it says that 'Module Not Found: Error: Can't resolve [PATH]' and it gives a valid path for the component, the path that ng itself generated. What's going on here? I've tried uninstalling #angular/cli and node and npm several times and I can't seem to get Angular to reliably generate new components on its own. What am I doing wrong here?
ERROR in /Users/{USER}/Dropbox/angularprojects/shadowrun-inventory/src/app/app.module.ts (5,36): Cannot find module './src/app/inventory/inventory.component'.
ERROR in Error encountered resolving symbol values statically. Could not resolve ./src/app/inventory/inventory.component relative to /Users/{USER}/Dropbox/angularprojects/shadowrun-inventory/src/app/app.module.ts., resolving symbol AppModule in /Users/{USER}/Dropbox/angularprojects/shadowrun-inventory/src/app/app.module.ts, resolving symbol AppModule in /Users/{USER}/Dropbox/angularprojects/shadowrun-inventory/src/app/app.module.ts
ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve './src/app/inventory/inventory.component' in '/Users/{USER}/Dropbox/angularprojects/shadowrun-inventory/src/app'
# ./src/app/app.module.ts 10:0-77
# ./src/main.ts
# multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.
This is the error I receive. What am I doing wrong here?
I have not so much experience with nwjs. If I open my nwjs.app I found this error:
Uncaught Error: Cannot find module 'mdns'
I try to fix it removing node modules and reinstall npm but it doesn't work. I tried to remove mdns module and reinstall but nothing.
I tried to change permission to the folders but it doesn't work too.
I don't found causes and how to fix it.
Thanks in advance for help.