guocaoyi / create-chrome-ext

🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
MIT License
1.71k stars 124 forks source link

vue-ts: error when starting dev server (v0.8.10) #51

Closed paul-sokko closed 1 year ago

paul-sokko commented 1 year ago

Release: v0.8.10 Framework: » vue Language: » vue-ts

How to Reproduce:

$ yarn install
$ yarn dev

Error:

failed to load config from C:\gits\test_ext\vue-ts\vite.config.ts
error when starting dev server:
file:///C:/gits/test_ext/vue-ts/node_modules/@vitejs/plugin-vue/dist/index.mjs:2
import { isCSSRequest, normalizePath as normalizePath$1, transformWithEsbuild, formatPostcssSourceMap, createFilter } from 'vite';
         ^^^^^^^^^^^^
SyntaxError: The requested module 'vite' does not provide an export named 'isCSSRequest'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

As I noticed, the issue appeared after pull request #50 when the '@vitejs/plugin-vue' package was updated

template-vue-ts/package.json

- "@vitejs/plugin-vue": "^2.3.3",
+ "@vitejs/plugin-vue": "^4.4.0",
guocaoyi commented 1 year ago

Release: v0.8.11 Framework: » vue Language: » vue-ts | vue-js

"vite": "^4.4.11",
"@vitejs/plugin-vue": "^4.4.0",
"vue-tsc": "^1.8.18"