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

npm install and npm run dev not working #9

Open
katopz opened this issue Dec 14, 2016 · 1 comment · May be fixed by #15
Open

npm install and npm run dev not working #9

katopz opened this issue Dec 14, 2016 · 1 comment · May be fixed by #15

Comments

@katopz
Copy link

katopz commented Dec 14, 2016

Step to reproduce

  1. Checkout fresh install.
  2. npm i
  3. npm run dev

Results

  • webpack throw error

Workaround

  1. yarn install // To install dependency
  2. npm run build // To create build folder
  3. npm run dev // To start webpack-dev-server

Or

  1. yarn install // To install dependency
  2. npm run start // To create build folder and start http-server

PS : I can see some movement in other branch so I didn't propose fixed PR to prevent conflict. :)

@jkukul
Copy link

jkukul commented Apr 27, 2019

FWIW, When running npm run dev I am getting the following stack-trace:

ERROR in ./src/index.js
Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/jakub/repos/developit/preact-todomvc/node_modules/babel-preset-es2015/lib/index.js
    at createDescriptor (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
    at items.map (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
    at Array.map (<anonymous>)
    at createDescriptors (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
    at createPresetDescriptors (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
    at presets (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
    at mergeChainOpts (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-chain.js:320:26)
    at /Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-chain.js:283:7
    at buildRootChain (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/config-chain.js:120:22)
    at loadPrivatePartialConfig (/Users/jakub/repos/developit/preact-todomvc/node_modules/@babel/core/lib/config/partial.js:85:55)

@jkukul jkukul linked a pull request Apr 27, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants