Skip to content
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

Less Inline Javascript is not enabled #1195

Closed
XavierLeTohic opened this issue Apr 16, 2018 · 2 comments
Closed

Less Inline Javascript is not enabled #1195

XavierLeTohic opened this issue Apr 16, 2018 · 2 comments

Comments

@XavierLeTohic
Copy link

Choose one: is this a 🐛 bug

🎛 Configuration (.babelrc, package.json, cli command)

{
  "presets": ["env", "react"],
  "plugins": [
    "transform-class-properties",
    "transform-decorators-legacy",
    ["import", { "libraryName": "antd", "style": true }]
  ]
}

🤔 Expected Behavior

We should be able to import Antd less file :
import 'antd/dist/antd.less'

😯 Current Behavior

Build failed with error :
/node_modules/antd/dist/antd.less: Inline JavaScript is not enabled. Is it set in your options?

I didn't find a way to provide this options using Parcel 😔

🌍 Your Environment

Software Version(s)
Parcel 1.7.0
Node 9.4.0
npm/Yarn 5.7.1
Operating System OSX
@chenshuai2144
Copy link

#907
look here

@DeMoorJasper
Copy link
Member

This is a duplicate of #907, plz move discussion there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants