google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.09k stars 299 forks source link

the dependent project can not find the webpack_helpers module #472

Open xiuliren opened 1 year ago

xiuliren commented 1 year ago

I am trying the master branch of neuroglancer. It is not using webpack anymore. The dependent project example is still using webpack and is looking for the webpack_helpers.js, which is missing now.

situ git:(main) ✗ npm run dev-server

> dev-server
> webpack-dev-server --config ./config/webpack.config.js

[webpack-cli] Failed to load '/Users/jwu/code/situ/config/webpack.config.js' config
[webpack-cli] Error: Cannot find module 'neuroglancer/config/webpack_helpers'
Require stack:
- /Users/jwu/code/situ/config/webpack_helpers.js
- /Users/jwu/code/situ/config/webpack.config.js
- /Users/jwu/code/situ/node_modules/webpack-cli/lib/webpack-cli.js
- /Users/jwu/code/situ/node_modules/webpack-cli/lib/bootstrap.js
- /Users/jwu/code/situ/node_modules/webpack-cli/bin/cli.js
- /Users/jwu/code/situ/node_modules/webpack-dev-server/bin/webpack-dev-server.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
    at Module._load (node:internal/modules/cjs/loader:923:27)
    at Module.require (node:internal/modules/cjs/loader:1137:19)
    at require (node:internal/modules/helpers:121:18)
    at Object.<anonymous> (/Users/jwu/code/situ/config/webpack_helpers.js:20:32)
    at Module._compile (node:internal/modules/cjs/loader:1255:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
    at Module.load (node:internal/modules/cjs/loader:1113:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1137:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jwu/code/situ/config/webpack_helpers.js',
    '/Users/jwu/code/situ/config/webpack.config.js',
    '/Users/jwu/code/situ/node_modules/webpack-cli/lib/webpack-cli.js',
    '/Users/jwu/code/situ/node_modules/webpack-cli/lib/bootstrap.js',
    '/Users/jwu/code/situ/node_modules/webpack-cli/bin/cli.js',
    '/Users/jwu/code/situ/node_modules/webpack-dev-server/bin/webpack-dev-server.js'
  ]
}
xiuliren commented 1 year ago

I noticed that the webpack is replaced with esbuild. This is not updated correspondingly in this dependent example.