Linked Questions

1 vote
1 answer
2k views

when transpiling es6 modules from my node_modules with Babel my build breaks with the following error: SyntaxError: Cannot use import statement outside a module at wrapSafe (internal/modules/cjs/...
jorrebor's user avatar
  • 2,252
1 vote
0 answers
353 views

Hi I need some help with deploying my nextjs project to Vercel I am using emails-com to create a contact that work perfectly locally but I get a build fail on Vercel When I import emailjs-com like ...
cyrille's user avatar
  • 11
1 vote
0 answers
108 views

I am trying to use emailjs in my NextJS application to which you can find the repo here. When I deploy the application to Vercel, it throws an error saying I cannot use an import statement outside a ...
Jevon Cochran's user avatar
1 vote
0 answers
90 views

I am using react-st-modal library to display modals and I am getting an error while importing a function from this library. My import statement is: const CustomDialogPromise = import("react-st-...
user14850280's user avatar
1 vote
0 answers
60 views

When running "npm run build" I'm getting the following error: > Build error occurred C:\Users\...\project\nextjs-frontend\node_modules\mui-rte\index.js:1 export {default} from './dist/...
SJ19's user avatar
  • 2,123
7 votes
5 answers
7k views

I have tried what is written on their @tawk.to/tawk-messenger-react plugin docs? I have made a component like /components/Chat.js import TawkMessengerReact from "@tawk.to/tawk-messenger-react&...
Arghya Ghosh's user avatar
8 votes
1 answer
2k views

I'm trying to use the lightweight-charts package in my nextjs project, however when i try to call the createChart function I get this error in my nodejs console. ...\lightweight-charts\dist\...
marcell-janovszki's user avatar
2 votes
1 answer
5k views

I'm using "react-d3-speedometer" library but getting the above error while importing. can anyone help with this?
Sinchana hs's user avatar
2 votes
1 answer
3k views

Scenario I'm working on a group project and one of the project maintainers understandably wants to use Next.js. We are using three.js in the project and while leveraging the GLTFLoader I've run into ...
Jacksonkr's user avatar
  • 32.3k
1 vote
0 answers
4k views

I'm trying to use 'hover-effect' library in my next js application. However, I'm getting these error: Server Error => SyntaxError: Cannot use import statement outside a module (/node_modules/gsap/...
Jantoma21's user avatar
  • 495
1 vote
1 answer
332 views

Trying to implement Magic in NextJS using TypeScript. Following this example/tutorial, which uses JS not TS: https://github.com/magiclabs/example-nextjs Problem: when importing Magic like so import { ...
Danie A's user avatar
  • 821
1 vote
0 answers
437 views

Im developing a package from NextJs framework. This package has a middleware handler for API endpoints. So choosing which middlewares to be executed needs to be determined by developer outside the ...
FaSh's user avatar
  • 119
0 votes
0 answers
50 views

Recently I've developed a react package that can be downloaded from npm with the following command npm i react-secuuth which has dependency package which can be downloaded from npm with the command ...
Saaketh's user avatar
  • 33
1 vote
0 answers
47 views

Keep getting error SyntaxError: Cannot use import statement outside a module cyberoni_next\node_modules\three\examples\jsm\lines\LineGeometry.js:2 import { LineSegmentsGeometry } from "../lines/...
JustAsking's user avatar