Skip to content

Failed to import svelte route #34

@ranjitnadar

Description

@ranjitnadar

Hi Team
Tried using the svelte route inside the svelte boilerplate getting the following error, tried to modify the babel config no luck. Following are the error please guide me
ERROR in ./node_modules/svelte-routing/src/Router.svelte
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: node_modules\svelte-routing\src\Router.svelte: Unexpected token, expected "}" (22:29)

20 | const location =
21 | locationContext ||

22 | writable(url ? { pathname: url } : globalHistory.location);

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