Dynamically import each highlight language in markdown #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Etheryo/curriculum-vitae#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Because importing each language is such a pain, I wanted to dynamically import the language depending on whereas it is supported or not. This way I don't have to create a huge file containing each language. But i'm too dumb to figure out a better way.
Issue
I tried to dynamically import each component but i still get the error "ReferenceError: module is not defined". I don't understand why and where this error comes from because i'm not a javascript developper, so I let this to the experts of the subject.
Code I tried :