-
Notifications
You must be signed in to change notification settings - Fork 64
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
Bug: Failed to parse source map #834
Comments
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.@DanielRuf-bitexpert Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
encountered the same situation when upgrade from 1.16.2 to 1.16.3 |
See #825 and upgrade to 1.16.6. |
The same problem still exists with 1.16.6 @wangela. With "starting with 1.16.3" I mean, that it still exists. |
The declaration file has nothing to do with the sourcemap error, which is due to the new build setup, which was introduced in 1.16.3. |
This is a full refactoring of the rollup configuration to speed up builds, simplify the configuration prevent warnings and fix an error with the generated source maps. In detail: - refactor: Combine the three non-esm outputs into a single configuration. - feat: Enabled source-maps for all build outputs. - fix: Use a separate TypeScript configuration (`tsconfig.build.json`) during build. This configuration only compiles the required typescript files and doesn't reproduce the directory structure in the dist-folder (see also the change in package.json). It also now generates source maps correctly (googlemaps#834). - chore: Moved `fast-deep-equal` from dependencies to devDependencies. It is a very small function, and it has always been bundled in all of our outputs, so it's not actually required at runtime. This will be changed in the next major release. fixes googlemaps#834
I just ignored this warning by adding this to webpack. Since this is just a warning, but the code is working good, I decided to supress
|
This issue only arises when I use @googlemaps/js-api-loader in a React app built using the Create React App tool. It does not show if I use it in a React app built using the Vite tool (as of June 2024). Further this shows up as a warning mainly and is not an error for the React app. The warning has kind of a sub-error saying that the file was not found (node_modules@googlemaps\src\index.ts). It's not an error in principle for React. |
This is a full refactoring of the rollup configuration to speed up builds, simplify the configuration prevent warnings and fix an error with the generated source maps. In detail: - refactor: Combine the three non-esm outputs into a single configuration. - feat: Enabled source-maps for all build outputs. - fix: Use a separate TypeScript configuration (`tsconfig.build.json`) during build. This configuration only compiles the required typescript files and doesn't reproduce the directory structure in the dist-folder (see also the change in package.json). It also now generates source maps correctly (#834). - chore: Moved `fast-deep-equal` from dependencies to devDependencies. It is a very small function, and it has always been bundled in all of our outputs, so it's not actually required at runtime. This will be changed in the next major release. fixes #834 3436cc0
Environment details
Steps to reproduce
Code example
Stack trace
This didn't occur with v1.16.2. It seems you changed build-related parts of the CI pipeline: v1.16.2...v1.16.3
The text was updated successfully, but these errors were encountered: