Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
When i run ( ionic cordova build android --release ) to make .apk file . the error occur ( TypeError: env.runcmd is not a function). I try following step to resolve like.
1.npm install #ionic/cli-plugin-cordova#latest
it not solve.
May be issues with your plugins out of date or any bugs with latest upgrades.
Try :
Remove your node_modules folder
npm install --save --save-exact ionic#3.6.0
npm install
Freshly install all the node modules.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
everyone, I was new to react, so I want to refer someone in GitHub an error notification component code into myself viscose page, but I met couple of issues. Below is the link I follow as refer into my vscode
https://farbodsalimi.github.io/react-light-notifications/#installation.
after use the yarn command to install, I get a file named yarn.lock.
I attach the content of the yarn.lock file, I have no idea how can I use others built component as a component into my project.
I run couple of command:
npm i react-notifications
npm i react-notifications --force
npm audit fix --force
result: it pops up lots of error and warning, I am confusing
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 months ago.
Improve this question
I just created a new react app with "npx create react app" and when i run it with "npm start" (i havenĀ“t change anything) i got this error:
Compiled with problems:X
ERROR in ./src/App.css (./node_modules/css-loader/dist/cjs.js??ruleSet1.rules1.oneOf[5].use1!./node_modules/postcss-loader/dist/cjs.js??ruleSet1.rules1.oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/App.css)
Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-preset-env" plugin failed: Cannot find module 'node:vm'
Require stack:
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules#csstools\postcss-trigonometric-functions\dist\index.cjs
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\postcss-preset-env\dist\index.cjs
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\postcss-loader\dist\utils.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\postcss-loader\dist\index.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\postcss-loader\dist\cjs.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\loader-runner\lib\loadLoader.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\loader-runner\lib\LoaderRunner.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\webpack\lib\NormalModule.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\webpack-manifest-plugin\dist\index.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\react-scripts\config\webpack.config.js
C:\Users\Nico\Documents\programacion\MernEcomm\frontend\node_modules\react-scripts\scripts\start.js
enter image description here
Just ran into this exact thing today and fixed it by installing the latest version of node(16.15.0) -> https://nodejs.org/en/
You're most likely trying to use create-react-app on an image, and the image's configurations are crossing wires with create-react-app; that's what I just did by mistake using Docker, and I got the same exact compiling error with node:vm as a missing module
If you're using create-react-app, don't use it while you're in any Docker/Dev Environment images, just run the npx command in your terminal as is (probably helps having node downloaded on your local machine as well)
npx create-react-app my-app --template typescript
Hopefully that helps, I know that solved my problem
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I installed the package on my React Native folder project, but always seems like this:
After installing packages, you have to stop the metro server first.
When the server is running, it doesn't find the module you've installed.
So after stopping the server, reopen it by running
$ react-native start
and in another terminal run
$ react-native run-android
If the error still exists, then do the following:
$ rm -rf node_modules/
$ npm i
$ react-native start
$ react-native run-android # run this command in the different terminal.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
This error occurs after I run npm run eject in my react project.
Maybe someone knows how to solve this problem (error in image description).
Thank you.
make sure you commit all your code before you run that
Before you eject, you need to make sure that git sees no changes in your files. Either commit or reset the branch
It seems to have git error, It takes whole repository. In order to avoid this error initialise git repository by git init and them git add. followed by git commit -m "meesage"
before you run your commit, npm run eject you should to upload the project into
git. it should be needed to.....
git add .
git commit -am "save and then eject"
and after completing this try again....
npm run eject
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Error screen
Using:
"react": "15.3.1",
"react-native": "0.32.0",
Reopening the project worked for me for a similar issue.
Requiring unknown module "687".If you are sure the module is there, try restarting Metro Bundler. You may also want to run yarn, or npm install (depending on your environment).
It sounds like you are missing the node_modules folder from your react native project directory.
First steps are to check:
Is the node_modules folder in the same directory as your react-native
project (and where you are running the react-native start command
from) if so, ensure it has the react-native module inside.
Check that package.json in your project directory has the following
under 'dependencies' and then re-run npm install: "react": "15.3.1",
"react-native": "0.32.0",
If the correct files are inside the project directory then exit
the terminal/any programs related to running the code (xCode etc.)
and perform a 'react-native init ProjectName' and then 'npm install'
again.
The missing file is a part of the react-native core code so missing it implies something has gone wrong with the react-native installation or runtime paths.