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

请问怎么把代码弄成index.bundle.js,yarn watch时报这个错 #104

Open
lizhouxx opened this issue Sep 16, 2018 · 0 comments
Open

Comments

@lizhouxx
Copy link

请问怎么把代码弄成index.bundle.js

yarn watch时报这个错:
`
D:\ws_now\markdown-plus>yarn watch
yarn run v1.9.4
$ yarn build -- --watch
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node -r babel-register node_modules/.bin/webpack --progress --colors --watch
D:\ws_now\markdown-plus\node_modules.bin\webpack:2
basedir=$(dirname "$(echo "$0" | sed -e 's,,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at new Script (vm.js:73:7)
at createScript (vm.js:245:10)
at Object.runInThisContext (vm.js:297:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .js] (D:\ws_now\markdown-plus\node_modules\babel-register\lib\node.js:152:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

D:\ws_now\markdown-plus>yarn run test -o --watch
yarn run v1.9.4
error Command "test" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`

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