最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Module parse failed: The keyword 'interface' is reserved using turbo repo Next.js 13 - Stack Overfl

programmeradmin1浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 5

You 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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论