react-scroll-section
react-scroll-section copied to clipboard
SyntaxError: Unexpected token 'export'
I'm using node version v14.15.4 and NextJS 12.0.7, with react 17.0.2, and when I try to import anything, it gives me that error:

Did anyone manage to solve it?
Same issue here
same issue
@EmaSuriano
yep, me too,
You need to use something like
//... next.config.js
const withTM = require('next-transpile-modules')(['react-scroll-section']);
module.exports = withTM(nextConfig);
If you don't use next.js, find a way how to transpile modules with your build system
any updates on this @EmaSuriano ?
Hello guys, I updated the library to use Vite to compile the project and the typing issue should be fixed.
Can you confirm this @bogdancss ?