posthtml-extend icon indicating copy to clipboard operation
posthtml-extend copied to clipboard

Failed to resolve 'undefined'

Open katzmo opened this issue 4 years ago • 1 comments

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!

katzmo avatar Nov 30 '21 16:11 katzmo

Issue is still the same with posthtml-extend 0.6.2.

katzmo avatar Dec 13 '21 13:12 katzmo