NativeScript 7 build error: "export 'Style' (reexported as 'StyleBase') was not found in './map-view'
See original GitHub issueI have upgraded from NS6 to NS7.
When I run ns build android I get this warning:
WARNING in ../node_modules/nativescript-google-maps-sdk/map-view-common.js 72:0-30
"export 'Style' (reexported as 'StyleBase') was not found in './map-view'
@ ../node_modules/nativescript-google-maps-sdk/map-view.js
@ ./app/authenticated/home-page/components/geo-clocking-button/modals/google-maps-modal/google-maps-modal.component.ts
@ ./app/authenticated/authenticated.module.ts
@ ./app/main/app.module.ts
@ ./main.ts
Issue Analytics
- State:
- Created 3 years ago
- Comments:20
Top Results From Across the Web
how to solve nativescript-google-maps-sdk issue with NS 7 ...
I am using Nativescript 7 with angular 10. ERROR Error: Uncaught (in promise): TypeError: Class constructor View cannot be invoked without 'new' ...
Read more >I have upgraded from NS6 to NS7.
NativeScript 7 build error : "export 'Style' (reexported as 'StyleBase') was not found in './map-view'
Read more >Creating a Map-based App with Nativescript Vue
In this post, I'll discuss how to use maps, location services and API calls to create a Nativescript Vue application that will display...
Read more >nativescript-google-maps-sdk-n7
Setup · Configure API Key for Android · Configure API Key for iOS · Adding the MapView · Properties · Events · Native...
Read more >Using Google Maps in NativeScript
How to center the map · Place a marker on the map · Draw a polyline on the map · How to remove...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Proper webpack.config.js
const webpack = require(“@nativescript/webpack”); const { resolve } = require(‘path’);
module.exports = (env) => { webpack.init(env);
};
As a solution to this problem you can simply add
in your webpack.config.js file. As long as your project doesn’t have map-view file without any extension, you can sleep well. Hope it helps.