Skip to content
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

throwing error in NS Preview: A module has not been accepted. Failed to apply #99

Open
fbele opened this issue Jul 5, 2023 · 0 comments

Comments

@fbele
Copy link

fbele commented Jul 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant