-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESM broken since version 1.2.1 #13
Comments
Can you explain more about the error you get and how you are using it? I just tested the last version with a simple HTML code and <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script type="module">
import { detect } from './dist/tinyld.esm.js'
console.log(detect('test my text'))
</script>
</body>
</html> |
Sorry, I should have been more specific. This happened to me using Node.js 16.13.1. If I do |
This should be solved in last version 👍 |
CJS require works but ESM import throws an exception from version 1.2.1 to 1.2.3. Version 1.2.0 works fine.
The text was updated successfully, but these errors were encountered: