Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapitre Installation : npm build Cannot resolve module 'react/lib/ReactMount' #1

Closed
acidjames opened this issue Jun 28, 2017 · 2 comments

Comments

@acidjames
Copy link

Bonjour,

lors du chapitre installation, on nous indique de créer un fichier app.js vide.

Visiblement lorsque l'on npm start, l'erreur suivante apparait :

ERROR in ./app/Resources/js/app.js
Module not found: Error: Cannot resolve module 'react/lib/ReactMount' in /home/james/PhpstormProjects/react/react-symfony/app/Resources/js
 @ ./app/Resources/js/app.js 1:330-361
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 1.67 kB [rendered]
        [0] ./~/css-loader!./~/sass-loader!./app/Resources/scss/style.scss 160 bytes {0} [built]
        [1] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
webpack: Failed to compile.

Que doit-on mettre dans le fichier app.js pour que le webpack se build correctement ?

En te remerciant,
James

@falkodev
Copy link
Owner

falkodev commented Jun 28, 2017 via email

@acidjames
Copy link
Author

Merci pour ton aide, j'ai trouvé la solution

dans package.json :

"react-hot-loader": "1.3.1",

au lieu de la 1.3.0 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants