Skip to content

Failed to resolve 'undefined' #43

@katzmo

Description

@katzmo

After upgrading from posthtml-extend 0.6.0 to 0.6.1 building (with parcel) fails because it cannot find the template files anymore.

In my .posthtmlrc I have

    "posthtml-extend": {
      "root": "src/html/",
      "strict": false
    }

Now <extends src="templates/static-page.html"> in index.html gives me the following error:

Build failed.
@parcel/core: Failed to resolve 'undefined' from './src/html/index.html'
@parcel/resolver-default: Cannot load file './undefined' in './src/html'.

To be sure it's not some other node module, I've upgraded posthtml-extend only. With 0.6.0 everything works, with 0.6.1 it doesn’t. Any ideas appreciated!

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