Skip to content

npm run build fails with TypeError: Path must be a string. Received undefined #5

@Download

Description

@Download

When I try to npm run build on the example project, it fails:

C:\ws\preact-book-example>npm run build

> preact-book-example@0.0.0 build C:\ws\preact-book-example
> npm run build:firebase && preact build

npm WARN invalid config loglevel="notice"

> preact-book-example@0.0.0 build:firebase C:\ws\preact-book-example
> preact serve --server config > firebase.json

TypeError: Path must be a string. Received undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! preact-book-example@0.0.0 build:firebase: `preact serve --server config > firebase.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the preact-book-example@0.0.0 build:firebase script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
...

As you can see, I am running this on Windows.

Any ideas as to what is going wrong here?

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