Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Wrong example #25

Open
Open
@bnbarak

Description

@bnbarak

When getting the error:

Running "babel:dist" (babel) task
Warning: Path must be a string. Received undefined Use --force to continue.

The solution is to change the dist object from src to path
dist: { path: { './server.js': 'src/app.js' } }

At least in versions
"babel-preset-es2015": "^6.24.1", "babel-preset-stage-2": "^6.24.1", "grunt-babel": "^6.0.0"

Also need to change the example.

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