ui-mapbox
ui-mapbox copied to clipboard
throwing error in NS Preview: A module has not been accepted. Failed to apply
Hi there, I am trying to use this plugin for my Svelte Native project but it always fails to get import for usage. 'ns preview' just shows message "A module has not been accepted., Failed to apply." My code:
app.ts
import { svelteNativeNoFrame } from 'svelte-native';
import { registerNativeViewElement } from 'svelte-native/dom';
registerNativeViewElement("mapBox", () => require("@nativescript-community/ui-mapbox").MapboxView);
import App from './App.svelte';
svelteNativeNoFrame(App, {});
Home.svelte
<page>
<actionBar title="Home" />
<gridLayout>
<mapBox
accessToken="my_token"
mapStyle="traffic_night"
latitude="52.3702160"
longitude="4.8951680"
zoomLevel="3"
showUserLocation="true" />
</gridLayout>
</page>
Does anybody have any suggestion how to resolve this? Thanks.