-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do use ant.design UI in this project? #76
Labels
Comments
Hello! I'm having a similar issue, I'm trying out the project and I've installed an npm package that imports '.css' files into it's own files. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try write it in babal.config.js:
['import', { 'libraryName': 'antd', 'libraryDirectory': 'lib', 'style': 'css' }],
and use:
import { Modal } from 'antd'
but, throw error:
`
/Users/zkeyword/Documents/ssr/node_modules/antd/lib/style/index.css:7
body {
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:718:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:681:19)
`
The text was updated successfully, but these errors were encountered: