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

Uncaught SyntaxError: ambiguous indirect export: default #10

Closed
ThaDaVos opened this issue Oct 20, 2022 · 5 comments
Closed

Uncaught SyntaxError: ambiguous indirect export: default #10

ThaDaVos opened this issue Oct 20, 2022 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@ThaDaVos
Copy link

Describe what you're reporting
After installing the package, adding it to my app.ts by importing and app.use I am getting the error Uncaught SyntaxError: ambiguous indirect export: default in my console and the application does not load - if I remove the app.use the error goes away but of course I cannot use the package then.

How can we reproduce it?
Show us how to reproduce the bug.

Example:

  1. NPM install the package
  2. Add it to your app.ts the way it's shown in the docs
  3. See error

What were your expecting to happen?
A description of the expected behavior.
No error, able to use the components

What happened?
A description of the actual behavior.
Got an error

Screenshots
You can send screenshots to help express what you want to show us.

Device or enviroment

  • In which OS are you seeing this bug? Examples: Windows 11, Ubuntu, iOS.
  • If it is relevant, what browser are you? Examples: Chrome, Safari, Opera.
  • What is your npm version? You can check using npm -v. 8.15.0
  • What is your vue version? You can check using npm list. 3.2.40
  • What is your vue-google-maps-community-fork version? You can check using npm list. 0.1.4
  • Builder used: Vite, version: 3.1.8

Additional context
You also can add more context for your situation here. Feel free to express whatever you think its important.

@ThaDaVos
Copy link
Author

It seems to be related to:

import equal from '/node_modules/fast-deep-equal/index.js?v=290a8b6e';

@ThaDaVos
Copy link
Author

So it seems related to: #4

@NathanAP
Copy link
Owner

It seems that their exports are broken with fast-deep-equal ):
I believe you're following our guide to configure your main, so I believe you made everything right.

  • Is Fawmi's version working for you?
  • Are you on Vite? Did you try that hack to add fast-deep-equal to optimizeDeps?

@NathanAP NathanAP added bug Something isn't working waiting We need more info about it or we are waiting for something else labels Oct 20, 2022
@ThaDaVos
Copy link
Author

I used the hack to make it work as I am using vite

@NathanAP NathanAP added duplicate This issue or pull request already exists and removed bug Something isn't working waiting We need more info about it or we are waiting for something else labels Nov 4, 2022
@NathanAP
Copy link
Owner

NathanAP commented Nov 4, 2022

I will close this as it really seems related to #4 . If this still ocurring later we will reopen it.

@NathanAP NathanAP closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants