Skip to content
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

NonErrorEmittedError on loading docusaurus docs #162

Open
JJWTimmer opened this issue Sep 22, 2022 · 0 comments
Open

NonErrorEmittedError on loading docusaurus docs #162

JJWTimmer opened this issue Sep 22, 2022 · 0 comments

Comments

@JJWTimmer
Copy link

Hi,

I'm using latest Docusaurus 2 and the latest shiki-twoslash preset, and I loaded a custom grammar. I get the following output a few thousand times on our site:

ERROR in ./docs/CompileTimeErrors/AmbiguousFunctionReference/index.md

Module build failed (from ./node_modules/@docusaurus/mdx-loader/lib/index.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) {"error":1,"offset":0,"length":5}
    at processResult (C:\dev\projects\rascal\rascal-website\node_modules\webpack\lib\NormalModule.js:755:12)
    at C:\dev\projects\rascal\rascal-website\node_modules\webpack\lib\NormalModule.js:860:5
    at C:\dev\projects\rascal\rascal-website\node_modules\loader-runner\lib\LoaderRunner.js:399:11
    at C:\dev\projects\rascal\rascal-website\node_modules\loader-runner\lib\LoaderRunner.js:251:18
    at context.callback (C:\dev\projects\rascal\rascal-website\node_modules\loader-runner\lib\LoaderRunner.js:124:13)
    at Object.mdxLoader (C:\dev\projects\rascal\rascal-website\node_modules\@docusaurus\mdx-loader\lib\loader.js:153:16)

I had to add a JSON.stringify in the node_modules source of NormalModule.js to get it print something more meaningful than '[Object object]', that's why it prints {"error":1,"offset":0,"length":5}.

What does it mean, and how can I fix it? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant