[Bug Report] 在Nuxt中的服务端渲染模式下使用Indicator报错
- Dominant language
- Vue
- Stars
- 16.4k
- Forks
- 3.5k
- PR merge metrics
- No merged PRs in 30d
Description
### Mint UI version
2.2.13
### OS/Browsers version
chrome 62
### Vue version
2.5.13
### Reproduction Link
[https://jsfiddle.net/mmx38qxw/](https://jsfiddle.net/mmx38qxw/)
### Steps to reproduce
使用"nuxt": "^1.1.1",按需引入组件时,其他组件可以用,但是Indicator会提示
node_modules\.2.2.13@mint-ui\lib\spinner\style.css:2
.mint-spinner-snake {
^
SyntaxError: Unexpected token .
at createScript (vm.js:80:10)
at Object.206 (E:\aomi_git\aomi-pay\node_modules\.2.2.13@mint-ui\lib\indicator\index.js:266:18)
### What is Expected?
不报错
### What is actually happening?
运行报错
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reproduction link and the Nuxt 1.1.1 server-rendering setup using on-demand imports. Inspect lib/indicator/index.js and lib/spinner/style.css, which are named in the error trace, and verify that Indicator can load without a server-side syntax error while other components continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nuxtjs
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100