Hello guys, since I updated to Next 13.2.4 and next-use-contextual-routing from 2.3.0 to 3.0.0, I am getting this error every time I want to import the package import { useContextualRouting } from 'next-use-contextual-routing';
/node_modules/next-use-contextual-routing/dist/index.js:1
import { useCallback } from 'react';
SyntaxError: Cannot use import statement outside a module
"dependencies": {
"@headlessui/react": "^1.7.13",
"@heroicons/react": "^2.0.16",
"@next/font": "13.1.1",
"@react-oauth/google": "^0.5.1",
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"axios": "^1.3.2",
"eslint": "8.31.0",
"eslint-config-next": "13.1.1",
"js-cookie": "^3.0.1",
"next": "13.2.4",
"next-pwa": "^5.6.0",
"next-use-contextual-routing": "^3.0.0",
"nprogress": "^0.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.8.0",
"react-intersection-observer": "^9.4.1",
"react-toastify": "^9.1.1",
"react-twitter-embed": "^4.0.4",
"react-web-share": "^2.0.2",
"typescript": "4.9.4",
"zustand": "^4.3.6"
},
"devDependencies": {
"@tailwindcss/line-clamp": "^0.4.2",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.20",
"tailwindcss": "^3.2.4"
}