djpfs/react-vlibras

Error deploying to next js applications

vandsonfalcao opened this issue · 2 comments

create next-app --typescript

pkg.json

{
  "name": "testvlibras",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@djpfs/react-vlibras": "^2.0.2",
    "next": "12.2.4",
    "react": "18.2.0",
    "react-dom": "18.2.0"
  },
  "devDependencies": {
    "@types/node": "18.6.5",
    "@types/react": "18.0.17",
    "@types/react-dom": "18.0.6",
    "eslint": "8.21.0",
    "eslint-config-next": "12.2.4",
    "typescript": "4.7.4"
  }
}

Screenshot from 2022-08-08 17-48-18
Screenshot from 2022-08-08 17-50-30

_app.tsx

import "../styles/globals.css";
import type { AppProps } from "next/app";
import VLibras from "@djpfs/react-vlibras";

function MyApp({ Component, pageProps }: AppProps) {
	return (
		<>
			<Component {...pageProps} />
			<VLibras forceOnload={true} />
		</>
	);
}

export default MyApp;

same problem here

i was able to resolve the problem in parts, just add the "?" on node_modules
image
there are some erros poping in application but seems working fine
image