Skip to content

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

Description

@fbele

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions