nativescript-google-maps-sdk: NativeScript 7 build error: "export 'Style' (reexported as 'StyleBase') was not found in './map-view'
I 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
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 20
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.
@DavidMares22 it is now working on my android emulator. I am using an android 10 emulator.