Closed tlenclos closed 7 years ago
Hi ! Thanks for you work to cure the JS fatigue. I'm having fun so far using vitaminjs on a new project.
I tried on my windows desktop this morning and the build fail (on OSX works fine).
PS C:\DIR> .\node_modules\.bin\vitamin start --hot Hash: 15e7cabaad7841954140 Version: webpack 2.1.0-beta.5 Time: 866ms Asset Size Chunks Chunk Names server_bundle.js 87.1 kB 0 [emitted] main server_bundle.js.map 72.9 kB 0 [emitted] main chunk {0} server_bundle.js, server_bundle.js.map (main) 36.3 kB [rendered] [0] ./~/vitaminjs/config/index.js 2.76 kB {0} [built] [1] ./~/vitaminjs/config/utils/index.js 405 bytes {0} [built] [2] ./~/vitaminjs/src/server/app.js 782 bytes {0} [built] [1 error] [3] ./~/css-loader?module&localIdentName=[name]_[local]_[hash:base64:3]&importLoaders=1!./~/postcss-loader!./components/app.css 352 bytes {0} [built] [4] external "react" 42 bytes {0} [not cacheable] [5] external "webpack" 42 bytes {0} [not cacheable] [6] external "koa-compose" 42 bytes {0} [not cacheable] [7] external "koa-static" 42 bytes {0} [not cacheable] [8] external "lodash.mergewith" 42 bytes {0} [not cacheable] [9] external "path" 42 bytes {0} [not cacheable] [10] external "react-router" 42 bytes {0} [not cacheable] [11] ./~/vitaminjs/src/server/server.js 1.66 kB {0} [built] [12] (webpack)/hot/poll.js?1000 1.08 kB {0} [built] [13] ./components/app.js 1.8 kB {0} [built] [14] ./components/home.js 6.56 kB {0} [built] [15] ./reducers.js 452 bytes {0} [built] [16] ./routes.js 750 bytes {0} [built] [17] ./server/middlewares.js 3.05 kB {0} [built] [18] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built] [19] ./components/app.css 1.36 kB {0} [built] [20] ./~/isomorphic-style-loader/lib/insertCss.js 3.95 kB {0} [built] [21] ./~/vitaminjs/config/build/babelrc.js 384 bytes {0} [built] [22] ./~/vitaminjs/config/build/webpack.config.client.js 1.37 kB {0} [built] [23] ./~/vitaminjs/config/build/webpack.config.common.js 2.59 kB {0} [built] [24] ./~/vitaminjs/config/defaults.js 1.16 kB {0} [built] [25] ./~/vitaminjs/config/utils/emptyArray.js 19 bytes {0} [built] [26] ./~/vitaminjs/src/server/middleware/router.js 910 bytes {0} [built] [27] ./~/vitaminjs/src/server/middleware/staticAssetsServer.js 680 bytes {0} [built] [28] ./~/vitaminjs/src/server/middleware/store.js 591 bytes {0} [built] [1 error] [29] (webpack)/hot/log-apply-result.js 813 bytes {0} [built] [30] external "autoprefixer" 42 bytes {0} [not cacheable] [31] external "babel-runtime/core-js/get-iterator" 42 bytes {0} [not cacheable] [32] external "babel-runtime/core-js/json/stringify" 42 bytes {0} [not cacheable] [33] external "babel-runtime/core-js/object/assign" 42 bytes {0} [not cacheable] [34] external "babel-runtime/helpers/slicedToArray" 42 bytes {0} [not cacheable] [35] external "express" 42 bytes {0} [not cacheable] [36] external "fs" 42 bytes {0} [not cacheable] [37] external "history" 42 bytes {0} [not cacheable] [38] external "isomorphic-style-loader/lib/withStyles" 42 bytes {0} [not cacheable] [39] external "koa" 42 bytes {0} [not cacheable] [40] external "koa-bodyparser" 42 bytes {0} [not cacheable] [41] external "koa-conditional-get" 42 bytes {0} [not cacheable] [42] external "koa-etag" 42 bytes {0} [not cacheable] [43] external "koa-generic-session" 42 bytes {0} [not cacheable] [44] external "koa-mount" 42 bytes {0} [not cacheable] [45] external "koa-passport" 42 bytes {0} [not cacheable] [46] external "koa-router" 42 bytes {0} [not cacheable] [47] external "koa-send" 42 bytes {0} [not cacheable] [48] external "passport-steam" 42 bytes {0} [not cacheable] [49] external "react-helmet" 42 bytes {0} [not cacheable] [50] external "react-redux" 42 bytes {0} [not cacheable] [51] external "strip-json-comments" 42 bytes {0} [not cacheable] [52] external "webpack-dev-middleware" 42 bytes {0} [not cacheable] [53] external "webpack-hot-middleware" 42 bytes {0} [not cacheable] [54] multi main 40 bytes {0} [built] ERROR in ./~/vitaminjs/src/server/middleware/renderer.js Module parse failed: C:\DIR\node_modules\vitaminjs\src\server\middleware\renderer.js Unexpected token (42:8) You may need an appropriate loader to handle this file type. | const insertCss = (styles) => css.push(styles._getCss()); | const app = renderToString( | <Provider store={store}> | <CSSProvider insertCss={insertCss}> | <AsyncProps {...renderProps} {...asyncProps} /> @ ./~/vitaminjs/src/server/app.js 5:0-45 ERROR in ./~/vitaminjs/src/shared/store.js Module parse failed: C:\DIR\node_modules\vitaminjs\src\shared\store.js Unexpected token (12:28) You may need an appropriate loader to handle this file type. | | export function createRootReducer(reducers) { | return combineReducers({...reducers, routing: routerReducer }); | } | @ ./~/vitaminjs/src/server/middleware/store.js 1:0-59
Here is my config (Microsoft Windows [version 10.0.10586])
PS C:\DIR> node -v v5.10.1 PS C:\DIR> npm -v 3.8.3
I tried to start a vitamin project on Windows recently and it worked well. So I am closing this issue
Hi ! Thanks for you work to cure the JS fatigue. I'm having fun so far using vitaminjs on a new project.
I tried on my windows desktop this morning and the build fail (on OSX works fine).
Here is my config (Microsoft Windows [version 10.0.10586])