Razzle: build fails

Created on 2 Feb 2019  路  2Comments  路  Source: jaredpalmer/razzle

My current project fails when building npm run build.

As a test I made a new project and built it. It also fails.

> create-razzle-app myrazzle
> cd myrazzle
> yarn build
yarn run v1.9.4
$ razzle build
Creating an optimized production build...
Compiling client...
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
Compiled client successfully.
Compiling server...
Failed to compile.

server.js from Terser
TypeError: Cannot read property 'minify' of undefined

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Most helpful comment

All 2 comments

Thanks @bezugen, it worked!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pseudo-su picture pseudo-su  路  3Comments

knipferrc picture knipferrc  路  5Comments

piersolenski picture piersolenski  路  4Comments

MaxGoh picture MaxGoh  路  4Comments

ewolfe picture ewolfe  路  4Comments