Module parse failed: Unexpected token (1:0)
Unanswered
Pixiebob posted this in #help-forum
PixiebobOP
Anyone know what is this error? Already do my best my Im still stuck. You all can see my package in picture
2 Replies
Bcrypt unfortunately will never be compatible with Next 14, more particularly on SSR systems or server components, as it uses Crypto behind the scenes, which in turn is also incompatible with server components. What works natively with node is now the Web Crypto API, perhaps if Bcrypt migrated to this new API, it would work.
In turn, bcrypt.js follows the same path, even if it works for an hour, it will stop at any time, in addition to being 30% slower than bcrypt.
source: https://stackoverflow.com/questions/77978229/bcrypt-gives-an-unexpected-token-error-with-next-js-14-client-component-and-ne
PixiebobOP
@averydelusionalperson Ok, so I've tried to do the solution and it's suddenly error