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

[bug]: Failed to Fetch dynamically #74

Open
theCompanyDream opened this issue Jan 20, 2025 · 0 comments
Open

[bug]: Failed to Fetch dynamically #74

theCompanyDream opened this issue Jan 20, 2025 · 0 comments
Labels
issue: bug Issue reporting a bug

Comments

@theCompanyDream
Copy link

theCompanyDream commented Jan 20, 2025

What version of @strapi/sdk-plugin are you using?

  • npm: 10.2.3
  • node: v20.10.0
  • react version: 11^
  • 5.3.0
  • Opera GX/Brave/firefox/Chrome

What's Wrong?

I'm getting is error Failed to fetch

Image

I'm kinda at my wits end with this and I've done a lot to get this working. If I change the pages/App.jsx I get a page not found and I'm not entirely sure as to why. If you want to reproduce this error here are the steps. Here is the issue vite is throwing at me too if that helps at all

4:26:20 PM [vite] error while updating dependencies: Error: Build failed with 2 errors: ../strapi-supergpt/node_modules/@strapi/core/dist/services/content-api/permissions/engine.mjs:1:7: ERROR: No matching export in "../strapi-supergpt/node_modules/@strapi/permissions/dist/index.mjs" for import "default" ../strapi-supergpt/node_modules/@strapi/core/dist/services/entity-validator/index.mjs:3:7: ERROR: No matching export in "../strapi-supergpt/node_modules/@strapi/utils/dist/index.mjs" for import "default" at failureErrorWithLog (/home/company2/strapi/z-server/node_modules/esbuild/lib/main.js:1651:15) at /home/company2/strapi/z-server/node_modules/esbuild/lib/main.js:1059:25 at /home/company2/strapi/z-server/node_modules/esbuild/lib/main.js:1527:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) (x2)

I don't think this a bug but to be honest I just don't understand

To Reproduce

  1. npx create-strapi@latest my-strapi-project
  2. cd into my-strapi-project/src/
  3. git clone https://github.com/theCompanyDream/strapi-supergpt
  4. cd into strapi-supergpt
  5. git checkout feat/v5 (this is important because this is the v5 upgrade)
  6. yarn && yarn build and or yarn watch(for development)
  7. now go to the plugins.js and enable it w "strapi-supergpt": { enabled: true, resolve: "./src/strapi-supergpt" },
  8. then yarn development
  9. Register the a new user at the bottom
  10. Login in
  11. Navigate to you should see a tree icon that says supergpt click that link.

supergpt icon below
SuperGPT

Expected Behaviour

I expect that the page should show a chat window to show up when you click the supergpt icon. I've tried to make a dummy page that just has a h1 tag into it and I get a page not found. I'm very unsure what's wrong and would like some clarification on what I'm doing wrong here.

@theCompanyDream theCompanyDream added the issue: bug Issue reporting a bug label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug
Projects
None yet
Development

No branches or pull requests

1 participant