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 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

本文标签: