-
Notifications
You must be signed in to change notification settings - Fork 435
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
magika_node missing from exports in package.json #299
Comments
ps: the labels were automatically added and I cant remove them |
+1 |
Extremely good point. It should be fixed now. Let me know if it looks good to you |
[edit - failed - see next comment] import { MagikaNode } from 'magika/dist/mjs/magika_node' But the examples (even in the comments of file referenced above) show this style, which still doesn't work. import { MagikaNode as Magika } from "magika" ![]() |
The 'path' import above works at lint-time, but fails at build-time due to import { MagikaNode } from 'magika' But that fails at lint-time (and maybe build-time) unless you change |
Any resolution on this? I'm trying to import MagikaNode from a nextjs server side component. It works even though there is a linting error, however the app won't compile.
|
I found that to be able to import in CJS where I just cannot simpl migrate to ESM I need to modify magika package.json
|
Currently this package is not usable in typescript via node as the node export is missing from the package.json
The text was updated successfully, but these errors were encountered: