On going to build my grid (which works fine when viewing on workbench) I get the following
NonErrorEmittedError: (Emitted value instead of an instance of Error) Cannot find source file '../../../src/Localization/main.ts': Error: Can't resolve '../../../src/Localization/main.ts' in 'C:/dev2019/WebParts/GraphGrid/node_modules/@progress/kendo-react-intl/dist/es/Localization'
at emitWarning (C:/dev2019/WebParts/GraphGrid/node_modules/webpack/lib/NormalModule.js:117:16)
at C:/dev2019/WebParts/GraphGrid/node_modules/source-map-loader/index.js:80:7
at onError (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:65:10)
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at runAfter (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
at innerCallback (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (C:/dev2019/WebParts/GraphGrid/node_modules/tapable/lib/Tapable.js:252:11)
at C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:40:4
at loggingCallbackWrapper (C:/dev2019/WebParts/GraphGrid/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
@ ./node_modules/@progress/kendo-react-intl/dist/es/main.js 2:0-36
@ ./node_modules/@progress/kendo-react-grid/dist/es/GridNoRecords.js
@ ./node_modules/@progress/kendo-react-grid/dist/es/main.js
After looking around on the git issues I came across
https://github.com/telerik/kendo-react/issues/126
which seemed to be my issue.
So I followed this
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/extending-webpack-in-build-pipeline
so I could edit the configure webpack.
so my Gulpfile.js looks like
build.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.module.rules.push(
{
enforce: 'pre',
test: /\.js$/,
loader: "source-map-loader",
exclude: [
/\/node_modules\//
]
}
);
return generatedConfiguration;
}
});
But I still get all of my errors
Please can anyone give some help on this.