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

Syntax error in vite.config.js #2050

Closed
parischap opened this issue Feb 17, 2021 · 0 comments
Closed

Syntax error in vite.config.js #2050

parischap opened this issue Feb 17, 2021 · 0 comments

Comments

@parischap
Copy link

Using NodeJS 12.5.0.

Just installed a vite vue project on my pc with the following commands :
yarn create @vitejs/app tarteen --template vue
yarn install
yarn dev

And I get the following error during the yarn dev :

failed to load config from C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\vite.config.js
error when starting dev server:
C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\vite.config.js:1
import { defineConfig } from 'vite';
^

SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:720:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at loadConfigFromFile (C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\node_modules\vite\dist\node\chunks\dep-9bcbff8e.js:48360:30)
at resolveConfig (C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\node_modules\vite\dist\node\chunks\dep-9bcbff8e.js:48007:34)
at createServer$2 (C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\node_modules\vite\dist\node\chunks\dep-9bcbff8e.js:67828:26)
at CAC. (C:\Users\JEROME\Documents\MesDeveloppements\SitesInternet\tarteen\node_modules\vite\dist\node\cli.js:13950:30)
error

What am I doing wrong?

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant