Skip to content

docsify-server-renderer can't find prismjs #1427

@davazp

Description

@davazp

Bug Report

When running docsify serve docs/, it fails with the error

Error: Cannot find module 'prismjs'

This can usually work because the docsify package itself depends on it. However, if some other dependency depends on prismjs, the docsify dependency won't be hoist it so docisfy-server-renderer won't find it.

Other relevant information

This can probably be fixed by adding the dependency to the docisyf-server-renderer as well.

  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version: v12.18.2

  • npm/yarn version: yarn 1.22.5

  • Browser version:

  • Docsify version: 4.11.6

  • Docsify plugins:

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions