Chris Baucom
05/31/2021, 3:49 AMRyan
05/31/2021, 6:58 AM.babelrc. Is this the default that Next.js provides or have you added anything extra?Chris Baucom
05/31/2021, 12:35 PM// .babelrc
{
"presets": ["next/babel"],
"plugins": [
"babel-plugin-transform-typescript-metadata",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}Chris Baucom
05/31/2021, 12:36 PMRyan
05/31/2021, 12:38 PM"babel-plugin-transform-es2015-modules-commonjs",Ryan
05/31/2021, 12:39 PMChris Baucom
05/31/2021, 1:40 PM.babelrc does seem to resolve that error. Now I am getting the following:
ReferenceError: Cannot access 'ItemWhereInput' before initialization
at Module.ItemWhereInput (<webpack-internal:///./graphql/generated/type-graphql/resolvers/inputs/ItemWhereInput.ts:3:55|webpack-internal:///./graphql/generated/type-graphql/resolvers/inputs/ItemWhereInput.ts:3:55>)
Not sure if you can see that in CodeSandbox or not but I see it in my local dev server consoleChris Baucom
05/31/2021, 2:53 PM"babel-plugin-transform-es2015-modules-commonjs" line in .babelrc