-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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
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
- npx create-strapi@latest my-strapi-project
- cd into my-strapi-project/src/
- git clone https://github.com/theCompanyDream/strapi-supergpt
- cd into strapi-supergpt
- git checkout feat/v5 (this is important because this is the v5 upgrade)
- yarn && yarn build and or yarn watch(for development)
- now go to the plugins.js and enable it w
"strapi-supergpt": { enabled: true, resolve: "./src/strapi-supergpt" }, - then yarn development
- Register the a new user at the bottom
- Login in
- Navigate to you should see a tree icon that says supergpt click that link.
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.

