Skip to content

Conversation

@gzuidhof
Copy link
Contributor

Fixes

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/node_modules/@friendlycaptcha/server-sdk/dist/api/types' imported from /node_modules/@friendlycaptcha/server-sdk/dist/api/index.js

This occurs when you are not using Typescript, the resolving logic for types -> types.js is not the same. By adding the file extension we make sure it works in every environment without requiring special resolve rules.

@gzuidhof gzuidhof added the bug Something isn't working label Nov 18, 2024
@gzuidhof gzuidhof merged commit 3c6dd14 into main Nov 18, 2024
1 check passed
@gzuidhof gzuidhof deleted the fix-import-without-extension branch November 18, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants