typicode / lowdb

Simple and fast JSON database
MIT License
21.35k stars 918 forks source link

SyntaxError: Unexpected token 'export' #520

Closed ildevelop closed 2 years ago

ildevelop commented 2 years ago

Screen Shot 2022-01-25 at 17 50 03

how we can resolve this without Import ES6 or babel. thanks 🙏

luukdv commented 2 years ago

This might be helpful to you: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

a-danilin commented 2 years ago

Screen Shot 2022-01-25 at 17 50 03

how we can resolve this without Import ES6 or babel. thanks 🙏

Looks like only downgrade to lowdb version 1.0.0 could help with exports problem (I tried to fix this problem with https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c it doesn't helps) P.S not sure about LowSync on 1.0.0 version

ildevelop commented 2 years ago

Yes downgrade lowdb version to 1.0.0 are help.