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

> [email protected] build C:\ws\preact-book-example
> npm run build:firebase && preact build

npm WARN invalid config loglevel="notice"

> [email protected] 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! [email protected] build:firebase: `preact serve --server config > firebase.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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