[jira] [Created] (ZEPPELIN-5913) npm ERR! err.code.match is not a function

2023-05-19 Thread Perla Al Haddad (Jira)
Perla Al Haddad created ZEPPELIN-5913:
-

 Summary: npm ERR! err.code.match is not a function
 Key: ZEPPELIN-5913
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5913
 Project: Zeppelin
  Issue Type: Bug
  Components: build, zeppelin-web
 Environment: I am building this through wsl2 on a windows 10 machine
Reporter: Perla Al Haddad
 Attachments: NpmErr!err.code.matchIsNotAFunction.log

I've been running into this error when trying to build the project. This is 
happening for the zeppelin-web plugin
{code:java}
[INFO] Running 'npm install --legacy-peer-deps' in 
/home/perla/zeppelin/zeppelin/zeppelin-web
[DEBUG] Executing command line 
[/home/perla/zeppelin/zeppelin/zeppelin-web/node/node, 
/home/perla/zeppelin/zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js,
 install, --legacy-peer-deps]
[ERROR] npm ERR! err.code.match is not a function
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     /root/.npm/_logs/2023-05-19T09_19_34_604Z-debug.log{code}
 
These are my npm and node versions:
{code:java}
npm --version
6.9.0

node --version
v12.3.1 {code}
I have tried building the project with multiple different versions of node and 
npm and they all throw different errors. But I assumed this would be the most 
correct approach as it follows the versions specified in the pom.xml.
Contents of the pom.xml:
{code:java}
v12.3.1
6.9.0 {code}
The latest test I did was after completely deleting both node, npm, and nvm 
from my system and doing a clean install using the versions specified above.
 
I am building the 10.1 tag on github using this command:
{code:java}
mvn clean package -DskipTests -Pspark-3.0 -Pvendor-repo -rf :zeppelin-web -e -X 
{code}
A more complete traceback of the log will be attached to this issue.
 
This is a major blocker that's preventing me from building the project from 
source. I've been dealing with this issue for a couple days now with no 
meaningful progress. Any help on this would be very appreciated.
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (ZEPPELIN-5912) Can't resolve 'scrollmonitor/scrollMonitor.js' in '/workspace/zeppelin/zeppelin-web/src/app'

2023-05-18 Thread Perla Al Haddad (Jira)
Perla Al Haddad created ZEPPELIN-5912:
-

 Summary: Can't resolve 'scrollmonitor/scrollMonitor.js' in 
'/workspace/zeppelin/zeppelin-web/src/app'
 Key: ZEPPELIN-5912
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5912
 Project: Zeppelin
  Issue Type: Bug
  Components: build, zeppelin-web
Affects Versions: 0.10.1
 Environment: I'm running this with docker through wsl2 on a windows 10 
machine. 
Reporter: Perla Al Haddad
 Attachments: CantResolveScrollMonitor.log

I'm getting an error while building the Zeppelin web frontend. The error 
message is as follows:

```bash
[INFO] WARNING in configuration
[INFO] The 'mode' option has not been set, webpack will fallback to 
'production' for this value. Set 'mode' option to 'development' or 'production' 
to enable defaults for each environment.
[INFO] You can also set it to 'none' to disable any default behavior. Learn 
more: https://webpack.js.org/configuration/mode/
[INFO]
[INFO] ERROR in ./src/app/app.js
[INFO] Module not found: Error: Can't resolve 'scrollmonitor/scrollMonitor.js' 
in '/workspace/zeppelin/zeppelin-web/src/app'
[INFO]  @ ./src/app/app.js 7:0-41
[INFO]  @ ./src/index.js
[INFO] Child html-webpack-plugin for "index.html":
[INFO]      1 asset
[INFO]     Entrypoint undefined = index.html
[INFO]     [0] 
./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 11.2 KiB \{0} 
[built]
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!node_modules/angular-ui-grid/ui-grid.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        6 modules
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!node_modules/github-markdown-css/github-markdown.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        2 modules
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/app/jobmanager/job/job.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]     [0] 
./node_modules/css-loader!./node_modules/postcss-loader/src??postcss!./src/app/jobmanager/job/job.css
 2.38 KiB
{0} [built]
[INFO]         + 1 hidden module
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/app/notebook/dynamic-forms/dynamic-forms.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]     [0] 
./node_modules/css-loader!./node_modules/postcss-loader/src??postcss!./src/app/notebook/dynamic-forms/dynamic-forms.css
 621 bytes \{0} [built]
[INFO]         + 1 hidden module
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/app/notebook/revisions-comparator/revisions-comparator.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]     [0] 
./node_modules/css-loader!./node_modules/postcss-loader/src??postcss!./src/app/notebook/revisions-comparator/revisions-comparator.css
 5.36 KiB \{0} [built]
[INFO]         + 1 hidden module
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/components/navbar/expand-collapse/expand-collapse.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        2 modules
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/components/note-create/note-create.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        2 modules
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/components/note-import/note-import.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        2 modules
[INFO] Child mini-css-extract-plugin 
node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??postcss!src/components/note-rename/note-rename.css:
[INFO]     Entrypoint mini-css-extract-plugin = *
[INFO]        2 modules
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 2
[ERROR] npm ERR! zeppelin-web@0.0.0 build:dist: `npm-run-all prebuild && grunt 
pre-webpack-dist && webpack && grunt post-webpack-dist`
[ERROR] npm ERR! Exit status 2
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the zeppelin-web@0.0.0 build:dist script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely 
additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     /root/.npm/_logs/2023-05-18T09_20_54_639Z-debug.log

```

I'm using the v10.1 tag on GitHub and building the project using the provided 
Dockerfile.

The error occurs when executing the following command in the root folder:

``` bash
docker build -t zeppelin-docker .
```

Commenting