react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Failed to minify on build

Open FbPalmabit opened this issue 8 years ago • 6 comments

I followed the tutorial and created app with create-react-app. But when I build with npm run build i have this error:

Failed to minify the code from this file:

        ./node_modules/query-string/index.js:42

Read more here: http://bit.ly/2tRViJ9

Environment

  • React-admin version: 2.0.0-RC1
  • React version: 16.3.2

FbPalmabit avatar Apr 19 '18 12:04 FbPalmabit

Fixed by 4ee71dc56d7b257a8ba49cd3a03e11307cfddc50

fzaninotto avatar Apr 19 '18 12:04 fzaninotto

thanks!

FbPalmabit avatar Apr 19 '18 12:04 FbPalmabit

My build is failing too, and the commit https://github.com/marmelab/react-admin/commit/4ee71dc56d7b257a8ba49cd3a03e11307cfddc50 is probably fixing it.

Since that commit is not in RC1, I need to add the master branch as my dependency for now, because I need my build to not fail. However yarn add -D https://github.com/marmelab/react-admin#master results in

yarn add v1.5.1 [1/5] 🔍 Validating package.json... [2/5] 🔍 Resolving packages... error An unexpected error occurred: "Can't add "react-admin-lerna": invalid package version undefined.".

~~The problem is probably due to the fact that the name is "react-admin-lerna" instead of "react-admin".~~

~~How can I add react-admin#master now to my project?~~

christiaanwesterbeek avatar Apr 23 '18 14:04 christiaanwesterbeek

Version 2.0.0-RC2 has just been released, it contains the fix.

fzaninotto avatar Apr 24 '18 07:04 fzaninotto

I've same problem.

Failed to compile.

Failed to minify the code from this file:

        ./node_modules/ra-core/node_modules/query-string/index.js:9

"react-admin": "^3.0.4"

onka13 avatar Dec 15 '19 22:12 onka13

It seems #4081 reverted the fix. Reopening.

fzaninotto avatar Dec 16 '19 09:12 fzaninotto