-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error: import or require() statements can be added only by editing a Markdown #1312
Comments
I think this is the same as #1310, we are currently invistagating for the root cause but we couldn't find, let us know if you get why. To me, all the module aliases are not working within examples. The one think we can import is |
Yes, me too. I have the error if I try to import any of the package.json dependencies except for react. |
Try deleting |
@timsnadden I don´t know where you got this. I am a package maintainer and we allow the wider range of semver for our users, We want to see things break and we do not use lock file for that reason (except in app). The only thing it could have change on your side is that it upgraded version on your particular host. To me, I already have the latest version and this bug is still present. You´re advice won´t help. |
@kopax For me the issue was resolved by removing |
Ok, now I got it and you are right. Let's continue in #1278 |
I'm trying to make an example of my component in the Markdown file (.md). The problem is when I try to import something inside this markdown file:
When I go to the component it says:
Error: import or require() statements can be added only by editing a Markdown example file: ../../utils/validation
I tried also with require but it didn't work.
versions:
Example of my project:
https://github.com/aimementoring/blueprint
branch: feature/validations
To reproduce
The text was updated successfully, but these errors were encountered: