looker-open-source / looker-explore-assistant

A React Application for interacting with Looker data through natural language.
MIT License
110 stars 76 forks source link

Webpack Error when `npm run start` with the current version extension #82

Open lucidhwee opened 3 months ago

lucidhwee commented 3 months ago

Hi team, I got a following error when npm run start in Looker Extension Framework Setup step.

xxx@xxxx:~/looker-explore-assistant/explore-assistant-extension$ npm run start

> explore-assistant@0.1.0 start
> webpack serve --hot --server-type https  --port 8080 --config webpack.develop.js

[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'.
Error: Cannot find module 'webpack-dev-server'
Require stack:
- /usr/share/nodejs/@webpack-cli/serve/lib/index.js
- /usr/share/nodejs/webpack-cli/lib/webpack-cli.js
- /usr/share/nodejs/webpack-cli/lib/bootstrap.js
- /usr/share/nodejs/webpack-cli/bin/cli.js
- /usr/share/nodejs/webpack/bin/webpack.js

When I used the previous commit version of c986fe36f173a13490f7458a8252e7a63db22a1a, it worked well without the same issue in my same dev environment.

praveenkumar-bidgely commented 3 months ago

@lucidhwee have you run the npm install command to install all dependencies?

refer this document at this step: https://medium.com/refined-and-refactored/how-to-set-up-genai-x-looker-extension-under-15-minutes-explore-assistant-b1f918ed9c58#:~:text=run%20this%20command-,npm%20install,-Next%2C%20we%20will

PS: please note this document is not updated as per the latest changes. there is one addition task to be done to setup completely i.e. inserting sample examples in bigquery. please refer PR https://github.com/looker-open-source/looker-explore-assistant/pull/75 for this change.