Closed dukesx closed 3 years ago
Hi @dukesx. I wasn't able to reproduce using the with-ant-design
example. Could you please include a repository showing this issue?
It sounds like you are using a module that needs transpiled.
Hi @dukesx. I wasn't able to reproduce using the
with-ant-design
example. Could you please include a repository showing this issue?It sounds like you are using a module that needs transpiled.
Please update ant Design in the example to 4.9 (current). That Repo is using version 4.0.3 which is year older I guess. Then try again.
Closing as there's no reproducible example, and @jamesmosier was not able to reproduce. If someone is interested in updating the Ant Design example, we can reopen this for that 😄
Thank you!
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Bug report
Describe the bug
When i try to import Typography or other modules, it gives me an error "Cannot use import statement outside a module"
Error Stack is from
file:///C:/Users/username/Desktop/app/node_modules/%20(ctrl/tinycolor/dist/modern/public_api.js (1)
and i am not using tinycolor library, seems part of ant design.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Typogaphy.Text
or any other Typography moduleEven if you import it like
const {Text} = Typography
it still gives same error
Expected behavior
Expected behavior is that this error doesn't originate.
Screenshots
None
System information
Additional context