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

missing files when syr init #9

Open
xyreryp opened this issue Nov 19, 2018 · 0 comments
Open

missing files when syr init #9

xyreryp opened this issue Nov 19, 2018 · 0 comments

Comments

@xyreryp
Copy link

xyreryp commented Nov 19, 2018

  • syr-cli version: latest
  • syr version: latest

Relevant code.

$ npm run serve

> [email protected] serve myProject
> webpack-dev-server --config webpack.config.js --content-base build/

Project is running at http://0.0.0.0:8081/
webpack output is served from /
Hash: 6a9fbaeb4697cce8998a
Version: webpack 3.12.0
Time: 780ms
                Asset       Size  Chunks                    Chunk Names
    assets/app.min.js     325 kB       0  [emitted]  [big]  app
assets/app.min.js.map     385 kB       0  [emitted]         app
           index.html  412 bytes          [emitted]         
   [2] multi (webpack)-dev-server/client?http://0.0.0.0:8081 ./samples/index.js 40 bytes {0} [built]
   [3] (webpack)-dev-server/client?http://0.0.0.0:8081 7.93 kB {0} [built]
   [4] ./node_modules/url/url.js 23.3 kB {0} [built]
   [5] ./node_modules/node-libs-browser/node_modules/punycode/punycode.js 14.7 kB {0} [built]
   [7] ./node_modules/url/util.js 314 bytes {0} [built]
   [8] ./node_modules/querystring-es3/index.js 127 bytes {0} [built]
  [11] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
  [12] ./node_modules/ansi-regex/index.js 135 bytes {0} [built]
  [13] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
  [14] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
  [15] ./node_modules/sockjs-client/dist/sockjs.js 181 kB {0} [built]
  [16] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
  [17] ./node_modules/ansi-html/index.js 4.26 kB {0} [built]
  [21] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {0} [built]
  [23] (webpack)/hot/emitter.js 77 bytes {0} [built]
    + 10 hidden modules

ERROR in multi (webpack)-dev-server/client?http://0.0.0.0:8081 ./samples/index.js
Module not found: Error: Can't resolve './samples/index.js' in '/Users/ypxie/Github/myProject'
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8081 ./samples/index.js

webpack: Failed to compile.

Problem description:
It's missing samples/ folder.

Suggested solution:
Update webpack.config.js line 8 to app: ['./src/index.js']

@dmikey dmikey transferred this issue from syrjs/core Nov 20, 2018
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