-
Notifications
You must be signed in to change notification settings - Fork 163
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
NativeScript 7 build error: "export 'Style' (reexported as 'StyleBase') was not found in './map-view' #455
Comments
Im also getting this warning! :D |
@aquinn637 @VanderSP
and then, after build
Let me know guys if anyone has a solution to it |
Try this, temp fix, it works for me on ns7 / angular 11 |
What if im getting one on android? what i should change in map-view-common.js? |
did you find any solutions? |
Based on @kefahB suggested I have created custom local package so each time we didn't need to change in node_modules/nativescript-google-maps-sdk/map-view.ios.js. you can download package here: https://github.com/jitendraP-ashutec/nativescript-googlemap-sdk-package/blob/main/nativescript-google-maps-sdk-4.0.0.tgz and place this file into root folder in your project and run below command to install this package into locally: npm install nativescript-google-maps-sdk-4.0.0.tgz I have tested it on Nativescript 7.0.10 and Angular 10.1.5. |
@jitendraP-ashutec thanks, very useful for now. |
same here, any news? |
As reported by @alexmeia it does work. I tried it on android. |
@leocrawf on an android emulator or a device ? for me it works on my phone but not on my emulator |
@DavidMares22 to be specific it worked on my android device, but not on the emulator. |
@DavidMares22 it is now working on my android emulator. I am using an android 10 emulator. |
@leocrawf Great!. I'll try android 10 then, which version were you using before? |
There is an issue when I try to do a build. This fix will only work with tns run [platform] but not tns build android ....... THis is my error: ERROR in chunk vendor [initial] |
@leocrawf I have managed to resolve that error by removing
from the file map-view.android.js |
I also have this same problem, but I didn't want to change files inside node_modules, did anyone solve it differently? |
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. |
Proper webpack.config.js const webpack = require("@nativescript/webpack"); module.exports = (env) => {
}; |
I'm still having this issue... I'm on webpack<5 😞. Can someone please take a look at my
|
I have upgraded from NS6 to NS7.
When I run ns build android I get this warning:
The text was updated successfully, but these errors were encountered: