Replies: 1 comment 1 reply
-
Critical dependency: The request of a dependency is an expression.The command line always warns me when I start a project using Prismjs in nuxt.The page will report an error,and cannot find module './prism-markup' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
当我在nuxt 中使用prismjs 启动项目的时候命令行总是报警告 Critical dependency: the request of a dependency is an expression 。页面会报错 Cannot find module './prism-markup'
我查看prismjs/component/index.js 好像是 45行 require(pathToLanguage)的问题
当我尝试require(${pathToLanguage}) 就变得正常
我想知道这个是不是Bug
Beta Was this translation helpful? Give feedback.
All reactions