Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

fix: import explicitly h #37

Merged
merged 1 commit into from
Jan 21, 2023
Merged

Conversation

gangsthub
Copy link
Contributor

@gangsthub gangsthub commented Jan 21, 2023

Trying to fix an error I've got when using mountSuspended with a component that had a NuxtLink:

ReferenceError: h is not defined

image

Related: #24

ℹ️ More info ⬇️

The problem is that when the library gets compiled, the h gets renamed:

Screenshot 2023-01-21 at 22 47 22

It's correctly used in the other module that consumes it:

Screenshot 2023-01-21 at 22 48 42

But not in the RouterLink component:

image

(all screenshots are in the same file, /dist/utils.mjs.)

Copy link
Owner

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! ❤️

@danielroe danielroe merged commit 880de94 into danielroe:main Jan 21, 2023
@gangsthub gangsthub deleted the fix/import-h branch January 22, 2023 06:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants