[英]React webpack error: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file
[英]How to fix NextJS webpack error: You may need an appropriate loader to handle this file type, currently no loaders are configured
我使用TypeScript
模板生成NextJS
项目,我想将我的Storybook
添加到项目中。 Storybook
是用TypeScript
编写的。 当我将 Storybook 添加到我的 NextJS 项目时,我收到了这样的 webpack 错误: "You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file "
。 NextJS 和 Storybook 都在使用 webpack 5。如何解决这个错误?
这个库没有被转译。 您可以尝试使用next-transpile-modules
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.