posthtml / posthtml-extend

Template extending (Jade-like)
MIT License
46 stars 9 forks source link

Failed to resolve 'undefined' #43

Open katzmo opened 2 years ago

katzmo commented 2 years ago

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 commented 2 years ago

Issue is still the same with posthtml-extend 0.6.2.