-
Notifications
You must be signed in to change notification settings - Fork 93
Description
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/@ikun-ui+button-group@0.2.6_ansi-colors@4.1.3_moment@2.30.1/node_modules/@ikun-ui/button-group/dist/index.svelte
1: <script lang="ts">
2: import type { KButtonGroupProps } from './types';
^
3: import { getPrefixCls, buttonGroupKey } from '@ikun-ui/utils';
4: import { setContext } from 'svelte';
at error (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:14256:16)
at Parser.error (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:14404:3)
at Parser.acorn_error (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:14391:8)
at Object.read_script [as read] (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:9690:10)
at tag (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:13071:27)
at new Parser (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:14352:12)
at parse (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:14529:17)
at Object.compile (/home/svelte/node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/compiler.cjs:45620:14)
at Object.transform (/home/svelte/node_modules/.pnpm/rollup-plugin-svelte@7.2.2_rollup@3.29.4_svelte@4.2.18/node_modules/rollup-plugin-svelte/index.js:164:28)
at /home/svelte/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/shared/rollup.js:1914:40
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
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- 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.
- The provided reproduction is a minimal reproducible example of the bug.