Closed Vivek205 closed 2 years ago
A very straightforward google query yielded this result: https://stackoverflow.com/questions/66244968/cannot-use-import-statement-outside-a-module-error-when-importing-react-hook-m
Did you ever get this working in nextjs @vivek205? I tried wrapping with next-transpile-modules but get some other error
next-transpile-modules - transpiled: …/@pqina/flip/dist/flip.module.js
next-transpile-modules - transpiled: …/@pqina/flip/dist/tick.view.flip.module.js
next-transpile-modules - transpiled: …/@pqina/flip/tick/tick.core.module.js
next-transpile-modules - transpiled: …/@pqina/flip/dist/flip.module.js
next-transpile-modules - transpiled: …/@pqina/flip/dist/tick.view.flip.module.js
next-transpile-modules - transpiled: …/@pqina/flip/tick/tick.core.module.js
event - compiled client and server successfully in 830 ms (627 modules)
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 71 ms (628 modules)
error - node_modules/@pqina/flip/dist/flip.module.js (3:0) @ eval
error - TypeError: Cannot read property 'plugin' of null
at eval (webpack-internal:///./node_modules/@pqina/flip/dist/flip.module.js:9:64)
most likely related to the transpile hack, but… maybe you got around the problem in some other way?
@arnotixe I got the same error.
@arnotixe Same error too, you find a solution? Please help me
I tried using this module with NextJs but facing an error
SyntaxError: Cannot use import statement outside a module