developit / preact-todomvc

💣 TodoMVC done in Preact. Under 6kb and fast.
https://preact-todomvc.surge.sh
105 stars 32 forks source link

npm install and npm run dev not working #9

Open katopz opened 7 years ago

katopz commented 7 years ago

Step to reproduce

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

Results

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 commented 5 years ago

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)