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

The request of a dependency is an expression - prismJS error #2937

Closed
afsarpervez opened this issue Jun 8, 2021 · 1 comment
Closed

The request of a dependency is an expression - prismJS error #2937

afsarpervez opened this issue Jun 8, 2021 · 1 comment

Comments

@afsarpervez
Copy link

WARNING in ./node_modules/prismjs/components/index.js 42:23-54
Critical dependency: the request of a dependency is an expression

My code part that causing the problem while using with WebPack
import prism from 'markdown-it-prism';

farther code lines:

const md = new MarkdownIt();
md.use(prism);

I tried changing versions for different laravel mix, vue, and markdown-it-prism packages. But nothing changed. This problem only omitted when I remove the markdown-it-prism import.

@RunDevelopment
Copy link
Member

This is most likely an issue with markdown-it-prism. There are thousands of people that use Prism with webpack and don't have this problem.

You already opened jGleitz/markdown-it-prism#313.

Feel free to comment on this issue or open another issue if it turns out to be a bug with Prism.

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

No branches or pull requests

2 participants