admin管理员组文章数量:1431037
I am using Next.js 13 with turbo repo.. can any one solve this problem. all ponents working fine with previous version on next.js...
Module parse failed: The keyword 'interface' is reserved (10:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See
hra:dev: > interface Props { item?:any fieldname?: string
i have try all things like webpack modules.
I am using Next.js 13 with turbo repo.. can any one solve this problem. all ponents working fine with previous version on next.js...
Module parse failed: The keyword 'interface' is reserved (10:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js/concepts#loaders
hra:dev: > interface Props { item?:any fieldname?: string
i have try all things like webpack modules.
Share Improve this question asked Nov 7, 2022 at 9:36 Ahsan MirzaAhsan Mirza 491 silver badge4 bronze badges2 Answers
Reset to default 5You should transpile the ui kit module in your next config.
module.exports = {
transpilePackages: ['ui'],
}
Faced a similar problem , and solved it by adding transpilePackages: ["@repos/ui"]
to next.config.js
at workspace level.
All next-transpile-modules features have natively landed to Next.js 13.1 -- nextjs
本文标签:
版权声明:本文标题:javascript - Module parse failed: The keyword 'interface' is reserved using turbo repo Next.js 13 - Stack Overfl 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745548484a2662818.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论