marko-js / tags

Not quite core components.
MIT License
22 stars 11 forks source link

<portal> Error: Failed to load url ./target (resolved id: ./targe t). Does the file exist? #68

Closed UROjQ6r80p closed 1 year ago

UROjQ6r80p commented 1 year ago

@marko-tags/portal@1.2.1

Details

Error occurs while using <portal> tag with Vite bundler.

Expected Behavior

Actual Behavior

Possible Fix

Simply changing import targetTemplate from './target' into: import targetTemplate from './target.marko' solves this.

Additional Info ### Your Environment - Environment name and version (e.g. Chrome 39, node.js 5.4): - Operating System and version (desktop or mobile): - Link to your project: ### Steps to Reproduce 1. first... 2. 3. 4. ### Stack Trace
DylanPiercey commented 1 year ago

Sorry it took a while to get to this. Now fixed in @marko-tags/portal@1.2.2