Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Crashing on Image xxx not found #4133

Closed
vjpr opened this issue Jan 31, 2021 · 1 comment
Closed

Crashing on Image xxx not found #4133

vjpr opened this issue Jan 31, 2021 · 1 comment
Labels
closed: question This issue is a user error/misunderstanding.

Comments

@vjpr
Copy link

vjpr commented Jan 31, 2021

This shouldn't crash docusuarus process.

Error: Module build failed (from /xxx/node_modules/.pnpm/@docusaurus/mdx-loader@2.0.0-alpha.70/node_modules/@docusaurus/mdx-loader/src/index.js):
Error: Image static/img/Screen%20Shot%202021-01-31%20at%202.39.11%20am.png used in ../../tools/webstorm/jetbrains-project/docs/config.md not found.
    at ensureImageFileExist (/xxx/node_modules/.pnpm/@docusaurus/mdx-loader@2.0.0-alpha.70/node_modules/@docusaurus/mdx-loader/src/remark/transformImage/index.js:49:11)
@vjpr vjpr added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jan 31, 2021
@vjpr
Copy link
Author

vjpr commented Jan 31, 2021

False alarm, I was adding the following custom webpack error handling which caused this.

      config.plugins.push(function () {
        this.hooks.done.tapAsync('done', function (stats, callback) {
          if (stats.compilation.errors.length > 0) {
            TODO(vjpr): If we throw here it will crash docusuarus!
            throw new Error(
              stats.compilation.errors.map(err => err.message || err),
            )
          }
          callback()
        })
      })

@vjpr vjpr closed this as completed Jan 31, 2021
@Josh-Cena Josh-Cena added closed: question This issue is a user error/misunderstanding. and removed bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 6, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
closed: question This issue is a user error/misunderstanding.
Projects
None yet
Development

No branches or pull requests

2 participants