question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.2.6.1@antd\lib\style\index.css Unexpected token (10:5)

See original GitHub issue

Environment(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:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
afc163commented, Jan 7, 2017

npm

0reactions
lock[bot]commented, May 2, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found