.2.6.1@antd\lib\style\index.css Unexpected token (10:5)
See original GitHub issueEnvironment(required)
- antd version:2.6.1
- OS and its version:windows 10
- Browser and its version:
What did you do? Please provide steps to re-produce your problem.
I just imported Button from antd
What happen?
Failed to compile.
Error in f:/web/zqmy/~/.2.6.1@antd/lib/style/index.css Module parse failed: f:\web\zqmy\node_modules.2.6.1@antd\lib\style\index.css Unexpected token (10:5) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (10:5) @ f:/web/zqmy/~/.2.6.1@antd/lib/button/style/css.js 3:0-32
Re-producible online demo
`import React from ‘react’; import {Button} from ‘antd’;
const Products = (props) => ( <div>
List of Products
<Button type="primary">Primary</Button> </div> );export default Products;`
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
webpack css "SyntaxError: Unexpected token {" - Stack Overflow
I found the problem, I do not need to use the require with path to the file. This is the final web.config: 'use...
Read more >SyntaxError, unexpected token loading CSS · Issue #1754
babel tries to parse a CSS file even though proper loaders are defined in the webpack.config.js. When I run npm run dev, I...
Read more >Uncaught SyntaxError: Unexpected token < - JavaScript - iDiallo
This is a common error in JavaScript, and it is hard to understand at first why it happens. But if you bear with...
Read more >Unexpected token .” error message thrown in a CSS file ...
Uncaught SyntaxError: Unexpected token .” error message in the browser's console prevents a form on a Sitefinity page to be submitted.
Read more >JavaScript Error Handling: Unexpected Token - GeeksforGeeks
Unexpected token is similar to syntax error but more specific.Semicolon(;) in JavaScript plays a vital role while writing a programme. Usage: To ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.