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
Error when Importing Module #97
Comments
Hm.... not yet. I need a little more information. I see Ah, maybe you could try this, just in case:
|
I was able to get it working by doing the import like this:
I also needed to run the script by adding
(also had to install esm module for this) |
Yes, that is how it should be. But if you use |
When I replace the 3 lines with just what's recommended in the documentation (as well as the variant suggested above), i.e.:
I get this error:
I'm running Node 9.3, could that be the problem? |
hm... let me check. |
ok, there are a few things to mention:
Now it still doesn't work, some requires are not translated by rollup, and I will probably have to rename |
On the other hand, |
@michael-brade - thanks for looking into that. I'll just continue using the workaround above. |
when i use this package in Vuecli, i cant import too. that's the error:
|
hm... I have no idea yet. But this is the next thing I will get to. I saw that the current rollup now has a new hook for dynamic imports (rollup/rollup#3449) so I hope this will help, too. |
Updates on this with
|
Thank you! I think I have it all fixed by now 😁 I'll do another release soo! |
…nable server-side LaTeX checking back
Hi guys, I have just released LaTeX.js v0.12.3. Can you test this again please? I hope this fixes all of your issues. With NodeJS 14, node now imports the correct format depending on if you import from an ECMAScript Module or if you |
Ok, too early. I found two more problems 😕 why is this so hard... |
Alright, finally those problems should be fixed. All test cases pass, including loading LaTeX.js as ES6 module and as CommonJS module. However, webpack doesn't support |
I get this error when I import the
latex.js
moduleAll I've done is put this at the top of my javascript file
import { parse, HtmlGenerator } from 'latex.js'
I've installed the
latex.js
package using the--save-prod
flag.Any ideas?
The text was updated successfully, but these errors were encountered: