Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change type to avoid name conflict #57

Closed

Conversation

huang-julien
Copy link
Contributor

@huang-julien huang-julien commented Jul 22, 2024

Hey 👋

this PR fix the ci of nuxt/scripts#176 . This is caused by a type GoogleTagManager and a var GoogleTagManager so it conflicts at build time. This PR renmae the type to GoogleTagManagerIsntance

@flashdesignory
Copy link
Collaborator

could you rename the type when importing?

something like:
import type { GoogleTagManager as GoogleTagManagerInstance } from 'third-party-capital';

@huang-julien
Copy link
Contributor Author

Do you mean in nuxt-script ? No because due to the name conflict, the type isn't exported in the build result

@flashdesignory
Copy link
Collaborator

Do you mean in nuxt-script ? No because due to the name conflict, the type isn't exported in the build result

ah got it - that makes sense... I'll adjust

@huang-julien
Copy link
Contributor Author

@flashdesignory google_tag_manager doesn't need to be removed from types i think

@flashdesignory
Copy link
Collaborator

closing, since this has been addressed with #54

@huang-julien huang-julien deleted the fix/type_conflict branch July 24, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants