ikun-ui
ikun-ui copied to clipboard
[BUG] - 启动时就报错ParseError: Unexpected token,怀疑是依赖问题
Describe the bug
(!) Unresolved dependencies https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency virtual:uno.css (imported by "src/App.svelte") [!] (plugin svelte) ParseError: Unexpected token node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@ikun-ui/button-group/dist/index.svelte 1:
Reproduction
http://123.207.254.186:10000/shiguangwu/svelte
System Info
npm version:16.20.2
system: liunx(ubuntu)
packagejson:{
"name": "svelte-app",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --no-clear --host 0.0.0.0 --port 8087"
},
"devDependencies": {
"@ikun-ui/preset": "^0.2.6",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-terser": "^0.4.0",
"rollup": "^3.15.0",
"rollup-plugin-css-only": "^4.3.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-svelte": "^7.1.2",
"svelte": "4.2.18",
"unocss": "^0.57.7"
},
"dependencies": {
"@ikun-ui/core": "^0.2.6",
"sirv-cli": "^2.0.0",
"uuid": "^10.0.0"
}
}
Used Package Manager
npm
Validations
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a ikun-ui issue and not a framework-specific issue. For example, if it's a Svelte SFC related bug, it should likely be reported to https://github.com/sveltejs/svelte instead.
- [X] The provided reproduction is a minimal reproducible example of the bug.