question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI does not build

See original GitHub issue

Alluxio Version: 2.2.0

Describe the bug

lerna ERR! npm run build --production  --no-save --no-package-lock --no-shrinkwrap exited 1 in '@alluxio/worker-ui'
lerna ERR! npm run build --production  --no-save --no-package-lock --no-shrinkwrap stdout:

> @alluxio/worker-ui@1.0.0 build /root/alluxio/webui/worker
> NODE_ENV=production && npm-run-all --parallel build-css build-js


> @alluxio/worker-ui@1.0.0 build-css /root/alluxio/webui/worker
> node-sass-chokidar --importer=../node_modules/node-sass-tilde-importer --include-path ./src --include-path ./node_modules src/ -o src/


> @alluxio/worker-ui@1.0.0 build-js /root/alluxio/webui/worker
> react-app-rewired build --scripts-version react-scripts

Rendering Complete, saving .css file...
Wrote CSS to /root/alluxio/webui/worker/src/containers/App/App.css
Rendering Complete, saving .css file...
Wrote CSS to /root/alluxio/webui/worker/src/index.css
Creating an optimized production build...
Failed to compile.

/root/alluxio/webui/worker/src/index.tsx
Type error: Property 'scroll' does not exist on type '{}'.  TS2339

    38 | 
    39 |   // Allow the client to control scroll-to-top using location.state
  > 40 |   if (loc.state && loc.state.scroll !== undefined && !loc.state.scroll) {
       |                              ^
    41 |     return;
    42 |   }
    43 |



lerna ERR! npm run build --production  --no-save --no-package-lock --no-shrinkwrap stderr:
Wrote 2 CSS files to /root/alluxio/webui/worker/src/
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @alluxio/worker-ui@1.0.0 build-js: `react-app-rewired build --scripts-version react-scripts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @alluxio/worker-ui@1.0.0 build-js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-02T07_25_33_290Z-debug.log
ERROR: "build-js" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @alluxio/worker-ui@1.0.0 build: `NODE_ENV=production && npm-run-all --parallel build-css build-js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @alluxio/worker-ui@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-02T07_25_33_306Z-debug.log

To Reproduce mvn -T 2C clean package -DskipTests -Dmaven.javadoc.skip -Dfindbugs.skip -Dcheckstyle.skip -Dlicense.skip on FreeBSD 12.1 using node v10.17.0 and npm v6.12.1

Expected behavior Compile!

Urgency No real urgency

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ZacBlancocommented, Apr 3, 2020

@tieujason330 can you take a look at this?

0reactions
tieujason330commented, Apr 9, 2020

thanks guys, i’m not entirely sure why it’s complaining for some OSes, but i’ll make a minor change to fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Build Errors not in UI - Stack Overflow
No squiggly lines of any color. The syntax seems correct regardless of UI. All the errors are build errors--nothing from Intellisense.
Read more >
Unity UI showing in Editor, but not in Build
My problem: My score UI would show fine within Unity editor with 4:3 aspect ratio. Same with title screen and game over screen....
Read more >
cannot build the UI · Issue #9877 · ansible/awx - GitHub
SUMMARY. While installing with docker containers in the following section "Clean and Build UI" , I encountered with the following errors.
Read more >
Limitations & Troubleshooting | Android Developers
If a UI Package name does not start with a letter, Relay will generate Compose code that does not compile, with an error...
Read more >
Why UI Takes So Long To Build - Kleeen Software
This is not the work to build APIs, nor is this getting data into the pie chart. API integration is the “conversation” between...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found