swagger-api / swagger-editor

Swagger Editor
https://editor.swagger.io
Apache License 2.0
8.95k stars 2.26k forks source link

swagger Missing "./jsx-runtime.js" specifier in "react" package #5079

Open marcodarko opened 6 months ago

marcodarko commented 6 months ago

I'm running Swagger 5 alpha on a Vite/Vue3 SPA, the previous version worked great but upgrading to this gives me an error I can't find any documentation on maybe because it's so new.

If this line looks familiar can you recommend anything I can try please:

swagger Missing "./jsx-runtime.js" specifier in "react" package

I can share my package.json if that helps:

{
"name": "vite-app ready",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test:unit": "vitest",
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
"dependencies": {
"@cosmograph/cosmograph": "^1.3.1",
"@meforma/vue-toaster": "^1.3.0",
"axios": "^0.21.4",
"chart.js": "^2.9.4",
"clipboard": "^2.0.11",
"core-js": "^3.33.0",
"cytoscape": "^3.26.0",
"cytoscape-popper": "^1.0.7",
"graphology": "^0.25.4",
"graphology-layout": "^0.6.1",
"lodash": "^4.17.21",
"mark.js": "^8.11.1",
"marked": "^4.3.0",
"material-design-icons": "^3.0.1",
"materialize-css": "^1.0.0",
"moment": "^2.29.4",
"remarkable": "^2.0.1",
"sigma": "^3.0.0-beta.6",
"swagger-editor": "^4.12.2",
"swagger-ui": "^4.19.1",
"tabulator-tables": "^4.9.3",
"tippy.js": "^6.3.7",
"tsparticles-slim": "^2.12.0",
"vivus": "^0.4.6",
"vue": "^3.3.4",
"vue-final-modal": "^1.8.8",
"vue-gtag-next": "^1.14.0",
"vue-meta": "^3.0.0-alpha.4",
"vue-router": "^4.2.5",
"vue-sweetalert2": "^4.3.1",
"vue3-particles": "^2.12.0",
"vuex": "^4.1.0",
"zdog": "^1.1.3"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.5.1",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/test-utils": "^2.4.1",
"cypress": "^13.3.1",
"eslint": "^8.51.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.17.0",
"jsdom": "^22.1.0",
"prettier": "^3.0.3",
"start-server-and-test": "^2.0.1",
"vite": "^4.4.11",
"vitest": "^0.34.6"
}
}
krnbr commented 2 weeks ago

same here.

any solution?

ArrowTech0515 commented 2 weeks ago

Me, too. I am using react and Quarkus for the backend.