Prism: Webpack build error

Created on 13 Jul 2018  路  1Comment  路  Source: PrismJS/prism

getting the following error.

 warning  in ./node_modules/prismjs/components/index.js

59:23-54 Critical dependency: the request of a dependency is an expression

 warning  in ./node_modules/prismjs/components/index.js

61:2-25 Critical dependency: the request of a dependency is an expression
support

>All comments

The loadLanguages function exported by components/index.js is intended for node use, not webpack. See the documentation for usage with webpack: https://prismjs.com/#basic-usage

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kizu picture kizu  路  7Comments

sheljohn picture sheljohn  路  4Comments

jiantosca picture jiantosca  路  4Comments

brian-kephart picture brian-kephart  路  6Comments

RunDevelopment picture RunDevelopment  路  7Comments