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

webpack failed to compile on first npm start #6

Open
mrassili opened this issue Apr 27, 2018 · 0 comments
Open

webpack failed to compile on first npm start #6

mrassili opened this issue Apr 27, 2018 · 0 comments

Comments

@mrassili
Copy link

Hi,

I just cloned this repo to try and fix the layout, I followed the steps in README.md and after running npm start I got an ERROR, here's the whole terminal window with all the steps performed :

Last login: Fri Apr 27 19:49:43 on ttys000
Marouanes-MBP:~ mrassili$ cd Projects
Marouanes-MBP:Projects mrassili$ git clone https://github.com/Chingu-cohorts/chingu-directory/
Cloning into 'chingu-directory'...
remote: Counting objects: 194, done.
remote: Total 194 (delta 0), reused 0 (delta 0), pack-reused 194
Receiving objects: 100% (194/194), 370.25 KiB | 535.00 KiB/s, done.
Resolving deltas: 100% (107/107), done.
Marouanes-MBP:Projects mrassili$
Marouanes-MBP:Projects mrassili$ cd chingu-directory
Marouanes-MBP:chingu-directory mrassili$ npm i

> [email protected] install /Users/mrassili/Projects/chingu-directory/node_modules/fsevents
> node install

[fsevents] Success: "/Users/mrassili/Projects/chingu-directory/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> [email protected] install /Users/mrassili/Projects/chingu-directory/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/darwin-x64-57_binding.node
Download complete  ⸩ ⠋ :
Binary saved to /Users/mrassili/Projects/chingu-directory/node_modules/node-sass/vendor/darwin-x64-57/binding.node
Caching binary to /Users/mrassili/.npm/node-sass/4.9.0/darwin-x64-57_binding.node

> [email protected] postinstall /Users/mrassili/Projects/chingu-directory/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/mrassili/Projects/chingu-directory/node_modules/node-sass/vendor/darwin-x64-57/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.

added 1125 packages from 787 contributors in 40.814s
Marouanes-MBP:chingu-directory mrassili$ code .
Marouanes-MBP:chingu-directory mrassili$ npm start

> [email protected] start /Users/mrassili/Projects/chingu-directory
> set NODE_ENV=development & webpack-dev-server

Project is running at http://localhost:8080/
webpack output is served from /
Hash: 2c646d798425a1615ac3
Version: webpack 2.7.0
Time: 2874ms
     Asset     Size  Chunks                    Chunk Names
  index.js  2.02 MB       0  [emitted]  [big]  main
index.html  1.05 kB          [emitted]
chunk    {0} index.js (main) 1.65 MB [entry] [rendered]
    [1] ./~/node-libs-browser/~/process/browser.js 5.42 kB {0} [built]
  [224] ./src/index.jsx 1.29 kB {0} [built]
  [225] ./~/react-hot-loader/patch.js 40 bytes {0} [built]
  [226] (webpack)-dev-server/client?http://localhost:8080 7.93 kB {0} [built]
  [352] ./~/loglevel/lib/loglevel.js 7.86 kB {0} [built]
  [492] ./~/react-hot-loader/index.js 40 bytes {0} [built]
  [497] ./~/react-hot-loader/lib/patch.js 209 bytes {0} [built]
  [528] ./~/redux-logger/dist/redux-logger.js 10.5 kB {0} [built]
  [529] ./~/redux-thunk/lib/index.js 529 bytes {0} [built]
  [534] ./~/strip-ansi/index.js 161 bytes {0} [built]
  [537] ./src/main.scss 1.02 kB {0} [built]
  [542] ./~/url/url.js 23.3 kB {0} [built]
  [544] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
  [545] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
  [550] multi (webpack)-dev-server/client?http://localhost:8080 react-hot-loader/patch ./src/index.jsx 52 bytes {0} [built]
     + 536 hidden modules

ERROR in ./src/containers/App.jsx
Module not found: Error: Can't resolve '../components/Donation' in '/Users/mrassili/Projects/chingu-directory/src/containers'
 @ ./src/containers/App.jsx 18:0-46
 @ ./src/index.jsx
 @ multi (webpack)-dev-server/client?http://localhost:8080 react-hot-loader/patch ./src/index.jsx

ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./src/main.scss
Module build failed:
  &::-moz-selection { @content; }
 ^
      Base-level rules cannot contain the parent-selector-referencing character '&'.
      in /Users/mrassili/Projects/chingu-directory/src/main.scss (line 11, column 3)
 @ ./src/main.scss 4:14-116
 @ ./src/index.jsx
 @ multi (webpack)-dev-server/client?http://localhost:8080 react-hot-loader/patch ./src/index.jsx
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 542 kB [entry] [rendered]
        [0] ./~/lodash/lodash.js 540 kB {0} [built]
        [1] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 1.39 kB {0} [built]
        [2] (webpack)/buildin/global.js 509 bytes {0} [built]
        [3] (webpack)/buildin/module.js 517 bytes {0} [built]
webpack: Failed to compile.

Thanks,

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

1 participant