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

Webpack Example does not build #1148

Closed
hediet opened this issue Aug 6, 2020 · 1 comment
Closed

Webpack Example does not build #1148

hediet opened this issue Aug 6, 2020 · 1 comment

Comments

@hediet
Copy link

hediet commented Aug 6, 2020

Bug Report

Steps to Reproduce:

  1. clone perspective
  2. cd examples/webpack
  3. yarn
  4. yarn start

Expected Result:

It serves the example.

Actual Result:

yarn run v1.22.4
$ webpack-dev-server --open
internal/modules/cjs/loader.js:1068
  throw err;
  ^

Error: Cannot find module '@finos/perspective/dist/esm/config'
Require stack:
- C:\dev\perspective\packages\perspective-webpack-plugin\index.js
- C:\dev\perspective\examples\webpack\webpack.config.js
- C:\dev\perspective\node_modules\webpack-cli\bin\utils\convert-argv.js
- C:\dev\perspective\node_modules\webpack-dev-server\bin\webpack-dev-server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)
    at Function.Module._load (internal/modules/cjs/loader.js:911:27)
    at Module.require (internal/modules/cjs/loader.js:1125:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (C:\dev\perspective\packages\perspective-webpack-plugin\index.js:13:22)
    at Module._compile (internal/modules/cjs/loader.js:1236:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
    at Module.load (internal/modules/cjs/loader.js:1085:32)
    at Function.Module._load (internal/modules/cjs/loader.js:950:14)
    at Module.require (internal/modules/cjs/loader.js:1125:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\dev\\perspective\\packages\\perspective-webpack-plugin\\index.js',
    'C:\\dev\\perspective\\examples\\webpack\\webpack.config.js',
    'C:\\dev\\perspective\\node_modules\\webpack-cli\\bin\\utils\\convert-argv.js',
    'C:\\dev\\perspective\\node_modules\\webpack-dev-server\\bin\\webpack-dev-server.js'
  ]
}

Environment:

e5b6e34, windows 10

@hediet
Copy link
Author

hediet commented Aug 6, 2020

Oh I guess I have to build that first. The yarn workspace confused me. Now I get the error that I actually cloned this demo for. See #1149.

@hediet hediet closed this as completed Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant