react-component / react-component/slider
SyntaxError: Unexpected token '.'
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Hey. I've done all the thing I have to done. But seems like I'm getting the same error on my server.
`/home/krofton/Development/navisgo/node_modules/rc-slider/assets/index.css:1
.rc-slider {
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.require (/home/krofton/Development/navisgo/build/external "@babel/runtime/helpers/typeof":1:18)
at a (/home/krofton/Development/navisgo/build/webpack/bootstrap:9:5)`
Please help. :)
I've done it this way:
import Slider, { Range, SliderTooltip } from 'rc-slider';
const { Handle } = Slider;
import 'rc-slider/assets/index.css';
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported import of rc-slider/assets/index.css and the error path in node_modules/rc-slider/assets/index.css; then inspect the build/webpack/bootstrap path shown in the stack trace. Done means the server build handles the stylesheet import without raising SyntaxError: Unexpected token '.'.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, react, webpack
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100