-
Notifications
You must be signed in to change notification settings - Fork 78
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
SyntaxError: Cannot use import statement outside a module #77
Comments
I also ran into this problem. I am able to fix it by going into node_modules/@ant-design/colors/dis/index.js and changing var conversion = require('@ctrl/tinycolor/dist/module/conversion');
var formatInput = require('@ctrl/tinycolor/dist/module/format-input'); to this var conversion = require('@ctrl/tinycolor/dist/conversion');
var formatInput = require('@ctrl/tinycolor/dist/format-input'); |
or for a more semi-permanent fix until a new release is published is to add the following to package.json until the breaking change is fixed (if you use yarn): "resolutions": {
"@ant-design/colors": "5.0.0"
} |
@zombieJ thanks for the quick fix 🙌 . Anything blocking publishing v5.1.1 to npm? 🙏 |
@cckz are you using Next.js? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, bundle crashes after last update
The text was updated successfully, but these errors were encountered: