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

Dependencies error #8

Open
plc1220 opened this issue Apr 1, 2024 · 6 comments
Open

Dependencies error #8

plc1220 opened this issue Apr 1, 2024 · 6 comments

Comments

@plc1220
Copy link

plc1220 commented Apr 1, 2024

Running npm install from root directory for looker extension, error as below:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@">=18" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.14.0" from @looker/[email protected]
npm ERR! node_modules/@looker/extension-sdk-react
npm ERR! @looker/extension-sdk-react@"23.20.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Please advice, thanks!

@plc1220
Copy link
Author

plc1220 commented Apr 1, 2024

proceded with npm install --legacy-peer-deps, not sure if this is the best way

@plc1220
Copy link
Author

plc1220 commented Apr 1, 2024

built and uploaded the bundle.js and changed manifest.lkml accordingly, unfortunately nothing shows up in the application nav bar

@LukaFontanilla
Copy link
Collaborator

Dashboard Summarization is going to exist as an Extension in a dashboard tile, which changes how it's accessed in the Looker UI. This doc release details Extensions in tiles (new as of Looker v24.0). Once Extension Framework is enabled in the Looker -> Admin panel, navigate to any dashboard -> enter edit mode -> click "Add" and there should be an "Extension" option.

As per the dependency conflict, we can look into resolve that 👍🏾

@plc1220
Copy link
Author

plc1220 commented Apr 12, 2024

Hi Luka, thanks for the reply. The dashboard summarisation extension is not found in marketplace yet, it'll be nice if you can share a rough timeline/roadmap for reference, or if the error can be rectified so we can have a sneak peak of the feature. On the other notes, not sure if its the right occasion, but I'm very much interested in the dashboard matching feature too but it seems to be archived. Also it'll be really cool if the gen-ai extensions can be embedded within the atomfashion demo. :)

Sorry for the many requests, and thanks for all the hard work on making Looker a cool product!

@sundante
Copy link

After this command, one may face issue with webpack for running the extension.
Steps to resolve.

update: "webpack-dev-server": "^3.11.2"

then run below command
npm install --legacy-peer-deps

then run: yarn develop

@Kamrul-ha
Copy link

@LukaFontanilla @jeremytchang @drstrangelooker
Hi all, I will really appreciated if could help below please.

When 5. start the development server npm run develop, its giving below [webpack-cli] Error, however, when npm run build then it created bundle.js file in local project directory in cloud shell. I could see a Dashboard extension in my Application but when i open the extension or add this on tiles, it giving error massage "Cannot connect to extension". Any help will really appreciated . Many thanks

[webpack-cli] Error: Unknown option '--disable-host-check'
[webpack-cli] Run 'webpack --help' to see available commands and options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants