Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fauxton failing to build on Centos 7 CI container #1230

Closed
willholley opened this issue Oct 9, 2019 · 1 comment · Fixed by #1231 or #1233
Closed

Fauxton failing to build on Centos 7 CI container #1230

willholley opened this issue Oct 9, 2019 · 1 comment · Fixed by #1231 or #1233

Comments

@willholley
Copy link
Member

willholley commented Oct 9, 2019

#Expected Behavior
npm run webpack:release should run successfully on all supported platforms.

Current Behavior

Fauxton is failing to build on the Centos 7 CI container (couchdbdev/centos-7-erlang-19.3.6:latest). Currently the container uses:

  • npm 6.4.1
  • node v8.16.0

Error is:

ERROR in ./app/main.js
Module build failed (from ./node_modules/eslint-loader/index.js):
Error: Cannot find module 'acorn'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/usr/src/couchdb/src/fauxton/node_modules/acorn-jsx/index.js:8:15)
    at Module._compile (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/usr/src/couchdb/src/fauxton/node_modules/espree/espree.js:62:13)
    at Module._compile (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/usr/src/couchdb/src/fauxton/node_modules/eslint/lib/linter/linter.js:17:14)
    at Module._compile (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/usr/src/couchdb/src/fauxton/node_modules/eslint/lib/linter/index.js:3:20)
    at Module._compile (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/usr/src/couchdb/src/fauxton/node_modules/eslint/lib/cli-engine/cli-engine.js:24:20)
    at Module._compile (/usr/src/couchdb/src/fauxton/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
 @ multi core-js/fn/array core-js/fn/string/ends-with core-js/fn/string/starts-with core-js/fn/object core-js/fn/symbol core-js/fn/promise regenerator-runtime/runtime ./app/main.js bundle[7]

Fauxton 1.2.0 updated webpack from "~3.12.0 to ^4.35.3 so I wonder whether webpack/webpack#8656 is related. I cannot reproduce the problem locally on MacOS with the same node/npm versions but can produce the error in the Docker container.

Possible Solution

  • Add webpack:release to the fauxton build / Travis so we verify the step there
  • Add an explicit dependency on acorn?

Steps to Reproduce (for bugs)

A simple Dockerfile to reproduce the error:

FROM couchdbdev/centos-7-erlang-19.3.6:latest
USER root
WORKDIR /usr/src

RUN set -xe; \
    git clone https://github.com/apache/couchdb-fauxton; \
    cd couchdb-fauxton; \
    npm install --production && ./node_modules/grunt-cli/bin/grunt couchdb
@popojargo
Copy link
Member

Have you tried updating webpack version?

willholley added a commit that referenced this issue Oct 9, 2019
@willholley willholley mentioned this issue Oct 9, 2019
4 tasks
willholley added a commit that referenced this issue Oct 10, 2019
willholley added a commit that referenced this issue Oct 10, 2019
Builds on CentoOS are failing due to missing peerdependencies.
This adds the following packages explicitly in package.json:

 * acorn
 * ajv

Fixes #1230 (properly)
willholley added a commit that referenced this issue Oct 14, 2019
Builds against recent nodejs versions are failing due to
missing peerdependencies. This adds the following packages
explicitly in package.json:

 * acorn
 * ajv

Fixes #1230 (properly)
willholley added a commit that referenced this issue Oct 14, 2019
Builds against recent nodejs versions are failing due to
missing peerdependencies. This adds the following packages
explicitly in package.json:

 * acorn
 * ajv

Fixes #1230 (properly)
willholley added a commit that referenced this issue Oct 14, 2019
Builds against recent nodejs versions are failing due to
missing peerdependencies. This adds the following packages
explicitly in package.json:

 * acorn
 * ajv

Fixes #1230 (properly)
willholley added a commit that referenced this issue Oct 14, 2019
Builds against recent nodejs versions are failing due to
missing peerdependencies. This adds the following packages
explicitly in package.json:

 * acorn
 * ajv

Fixes #1230 (properly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants