we're trying to use your library and it works properly in development mode. For production build we get an error:
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/@schibsted/account-sdk-browser/src/validate.js:25
Read more here: http://bit.ly/2tRViJ9
Npm package does not contain transpiled files.
I've cloned your repo, ran npm run build and modified in package.json main => dist/generated file, then I've linked my local copy to the create react app and it builds properly now.
I'm not sure is this a proper fix for this issue. If you have any concerns then feel free to contact me on our internal slack or here.
Hi there,
we're trying to use your library and it works properly in development mode. For production build we get an error:
Npm package does not contain transpiled files. I've cloned your repo, ran
npm run build
and modified in package.jsonmain => dist/generated file
, then I've linked my local copy to the create react app and it builds properly now.I'm not sure is this a proper fix for this issue. If you have any concerns then feel free to contact me on our internal slack or here.