Requiring unknown module react-native [closed] - reactjs

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.

Related

how to refer react code from the GitHub into myself viscose [closed]

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

Create React App Error - Loading PostCSS "postcss-preset-env" plugin failed: Cannot find module 'node:vm' [closed]

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

I installed the package on my React Native folder project, but always seems like this: EPERM [closed]

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.

My terminal shows an error of package.json not found while running yarn start command what should i do? [closed]

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 6 months ago.
Improve this question
$ yarn start
yarn run v1.22.5
error Couldn't find a package.json file in "C:\\Users\\Anjana Poudel\\Documents\\Javascript\\React.js\\Projects-react"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ node -v
v12.18.3
$ npm -v
6.14.6
$ yarn -v
1.22.5
You might have ran the command yarn start from the wrong folder. It might not have package.json
Usually when the new react app is installed into the system with npx create-react-app my-app, it creates the folder my-app in which all the react files reside. cd my-app command is required to run to access the files in the folder. Then yarn start or npm start will work.
It's due to space in the path: "C:\Users\Anjana Poudel\Documents\Javascript\React.js\Projects-react".
https://github.com/redwoodjs/redwood/issues/222
You must have used "create-react-app app_name" to create your application.
Try performing "cd app_name" to enter into your app folder and then use "yarn start". Happy Hacking! :)
If you're just installing yarn for the first time like me, create the general folder where you want to create the next app like builds. cd (navigate) into the created folder (builds in my case). Now run npm install --global yarn (make sure you are in the newly created folder). You can now create your app using yarn in that folder
If you are facing "Couldn't find a package.json"
You need to change the path or directory . You need to go to the
current project directory .
You need to check the package.json file
`script` whether it is working for you when
you write `yarn start` or `yarn dev`.

when making .apk file generate error [closed]

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.

Resources