Code Monkey home page Code Monkey logo

Comments (13)

yohangz avatar yohangz commented on May 9, 2024

It works perfectly fine for me. Can you please share the environment details (OS, Node JS version, NPM version)

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

yarn version v1.12.1
nide version v11.4.0
mac High Sierra 10.13.6

I installed all npm packages through yarn.

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

Can you try installing the node LTS version.

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

Now using node v10.14.2

Error:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node@10/10.14.2/bin/node',
1 verbose cli   '/usr/local/opt/node@10/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/avremel/Desktop/scala_react/ui/node_modules/.bin:/usr/local/opt/node@10/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
9 verbose lifecycle [email protected]~build: CWD: /Users/avremel/Desktop/scala_react/ui
10 silly lifecycle [email protected]~build: Args: [ '-c',
10 silly lifecycle   'rimraf ../public && react-scripts build && ncp build ../public && rimraf build' ]
11 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `rimraf ../public && react-scripts build && ncp build ../public && rimraf build`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/avremel/Desktop/scala_react/ui
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/Cellar/node@10/10.14.2/bin/node" "/usr/local/opt/node@10/bin/npm" "run" "build"
18 verbose node v10.14.2
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: `rimraf ../public && react-scripts build && ncp build ../public && rimraf build`
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

cd into ui dir and run yarn build to verify whether client project is building properly

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

yarn build is working fine

screen shot 2018-12-17 at 12 30 39 pm

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

I see the output of yarn build in the root public folder

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

are you running ./sbt clean dist in project root dir?

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

:) happy to help, did you try cloning this repo fresh and building it. Just want to make sure this happened prior to making any changes.

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

thanks 👍
i cloned the repo and did sbt dist, worked fine.
let me now copy stuff over...

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

okay great! i will close this issue then

from play-scala-react-seed.

avremel avatar avremel commented on May 9, 2024

It was failing on a javascript linting error for not having rel="noopener noreferrer" set on an <a> tag

from play-scala-react-seed.

yohangz avatar yohangz commented on May 9, 2024

Linters emit kill signal 1 when errors occur, which is causing the build failure.

from play-scala-react-seed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.