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

Unable to load the Loader in IE11 [Places] #122

Closed
asivaneswaran opened this issue Dec 10, 2020 · 8 comments
Closed

Unable to load the Loader in IE11 [Places] #122

asivaneswaran opened this issue Dec 10, 2020 · 8 comments
Assignees
Labels
needs more info This issue needs more information from the customer to proceed.

Comments

@asivaneswaran
Copy link

Please be sure to include as much information as possible:

Environment details

  1. Browser: IE11, OS: Windows 10
  2. Loaded in VueJS app.js

Steps to reproduce

  1. Load the script as shown in the code example
  2. Visit the website

Code example

import { Loader } from '@googlemaps/js-api-loader';

Stack trace

# SCRIPT1002: Syntax error

Thanks!

@jpoehnelt
Copy link
Contributor

Are you using webpack, rollup, or a similar tool to bundle your app? If not, you may want to load the UMD version from unpkg.

From the README:

Alternativly you may add the umd package directly to the html document using the unpkg link. <script src="https://unpkg.com/@googlemaps/js-api-loader/dist/index.min.js"></script> When adding via unpkg, the loader can be accessed at google.maps.plugins.loader.Loader.

@jpoehnelt jpoehnelt added the needs more info This issue needs more information from the customer to proceed. label Dec 11, 2020
@asivaneswaran
Copy link
Author

Hey,
We are using webpack to bundle our app.

@jpoehnelt
Copy link
Contributor

What are your Babel settings? Seems like a generic transpilation issue as this library is written in es6+.

@asivaneswaran
Copy link
Author

Hey, so our settings are the following:

module.exports = {
    plugins: [
        '@babel/plugin-proposal-class-properties',
    ],
    "presets": [
        [
            "@babel/preset-env",
            {
                "corejs": {
                    "version": 3,
                },
                "useBuiltIns": "usage",
            }
        ]
    ],
};

@asivaneswaran
Copy link
Author

asivaneswaran commented Dec 11, 2020

We realized our issue in our config. Sorry to have bothered you.

@jpoehnelt
Copy link
Contributor

Probably not transpiling the packages in node_modules.

babel/babel-loader#171
https://stackoverflow.com/a/56428646/3145360

@jpoehnelt
Copy link
Contributor

We realized our issue in our config. Sorry to have bothered you.

Not a problem, glad you found the solution!

@KurtVanHal
Copy link

We realized our issue in our config. Sorry to have bothered you.

Could you please elaborate on the solution pls? Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed.
Projects
None yet
Development

No branches or pull requests

3 participants