Skip to content

TypeError: require is not a function when running npm run docs:watch locally #2492

Closed
@Lehoczky

Description

@Lehoczky

I've tried to contribute to the documentation, but when I run npm run docs:watch, I only get a blank page with the following error:

Uncaught TypeError: require is not a function
    at index.js:9:9

image

What I did:

  • installed dependencies with npm install
  • ran npm run docs:watch

I've also tried to build the library with npm run tsc, but got the following error:

lib/rules/order-in-components.js:265:25 - error TS7006: Parameter 'fixer' implicitly has an 'any' type.

265     function* handleFix(fixer, propertyNode, unorderedPropertyNode) {
                            ~~~~~


Found 1 error in lib/rules/order-in-components.js:265

I'm on:

  • Windows 10
  • Node v20.15.0

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