Can't build perspective without perspective-viewer installation
Bug Report
Perspective webpack plugin throws error when serving perspective (1.0.0) without perspective-viewer (1.0.0)
Steps to Reproduce:
- yarn add @finos/perspective && yarn add -D @finos/perspective-webpack-plugin
- yarn start
Expected Result:
Serve without error
Actual Result:
Cannot find module '@finos/perspective-viewer/package.json'
Environment:
Mac OSX @finos/perspective: 1.0.0 @finos/perspective-webpack-plugin: 1.0.0 react: 17.0.1 webpack 4
Could be related to Webpack 4 again?
Thanks for the report!
This just looks like a bug - the plugin is merely trying to resolve the path though, it does not actually use @finos/perspective-viewer, so you should be able to install it without any side effects.
I did so. Thank you. Also thanks for 1.0.0 release. It looks like a great job.