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

yarn serve 报错 #171

Closed
xpsuper opened this issue Jan 10, 2021 · 1 comment
Closed

yarn serve 报错 #171

xpsuper opened this issue Jan 10, 2021 · 1 comment

Comments

@xpsuper
Copy link

xpsuper commented Jan 10, 2021

failed to load config from //vue-vben-admin/vite.config.ts
error when starting dev server:
/
/vue-vben-admin/node_modules/vite-plugin-mock/dist/createMockServer.js:93
next?.();
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1054:16)
at Module._compile (internal/modules/cjs/loader.js:1102:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/blues/Program/Vue/vue-vben-admin/intact/node_modules/vite-plugin-mock/dist/index.js:17:28)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
error Command failed with exit code 1.

anncwb added a commit that referenced this issue Jan 11, 2021
@anncwb
Copy link
Collaborator

anncwb commented Jan 11, 2021

Re-run yarn && yarn serve

@anncwb anncwb closed this as completed Jan 11, 2021
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

2 participants