awoken-bible / reference

NPM package for bible verse reference parsing, formating and meta data
MIT License
11 stars 3 forks source link

Fixed import error that occurs when using the library in next.js 14 #29

Closed the-jack-cox closed 8 months ago

the-jack-cox commented 8 months ago

The error that occurs when using the AwokeRef in a next.js component is: Module not found: Default condition should be last one

The root cause is an out-of-order declaration in the package.json file. Silly I know, but just swapping the order of the declarations in the file fixes the problem.

Great library by the way. Thanks for doing all the heavy lifting.

jnterry commented 8 months ago

@the-jack-cox Many thanks for taking the time to debug this and submit a fix - I've merged and published the updated package on npm