Giter Site home page Giter Site logo

Comments (6)

luisrudge avatar luisrudge commented on August 15, 2024

Is there anything else in this error? We use create-react-app in our Quick Start and it works: https://auth0.com/docs/quickstart/spa/react/01-login#create-a-sample-application

from auth0-spa-js.

benlester avatar benlester commented on August 15, 2024
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: `node scripts/build.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:189:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:189:13)
13 verbose stack     at maybeClose (internal/child_process.js:970:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/ben/dev/smart.ui
16 verbose Linux 4.4.0-17763-Microsoft
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v10.15.3
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: `node scripts/build.js`
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 ]

Further output. I've tried updating to react-script 3 with no luck also. The project I'm working on is ejected which makes updating to the latest CRA scripts troublesome.

from auth0-spa-js.

luisrudge avatar luisrudge commented on August 15, 2024

@benlester did you try in a non-ejected project like our Quick Start?

from auth0-spa-js.

benlester avatar benlester commented on August 15, 2024

Yes I've tried in a non-ejected dummy project and yes it does indeed work. The problem is this project is a behemoth project which was ejected a long time ago - quite difficult to put the genie back in the bottle.

The project works perfectly fine with npm run start it just refuses to build a minified version of auth0-spa-js

from auth0-spa-js.

luisrudge avatar luisrudge commented on August 15, 2024

Maybe it’s trying to process the file again? Make sure you exclude the node_modules or, if you need to process other libs, exclude this specific directory.

If you put a repro project somewhere, I’ll try to help. For now, I’m closing it because looks like a configuration issue.

from auth0-spa-js.

benlester avatar benlester commented on August 15, 2024

For what it's worth to anyone who may read this in the future.

I solved this issue by creating a dummy app with CRA, then copying the configs and scripts folders over to the project. And then updating the package.json file against the new dummy app's package.json.

from auth0-spa-js.

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.