Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Running into an import problem with Polymer 3 #231

@markcellus

Description

@markcellus

Description

I'm attempting to use the app-location element provided by the version of this package using polymer 3

import {html, PolymerElement}
    from '../../node_modules/@polymer/polymer/polymer-element.js';
import '../../node_modules/@polymer/app-route/app-location.js';

export class MyElement extends PolymerElement {
 //.. my other stuff here
}

but when this file is rendered, it gives me the following error in the console:

Uncaught TypeError: Failed to resolve module specifier "@polymer/polymer/polymer-legacy.js". Relative references must start with either "/", "./", or "../".

After inspecting, it is failing on the the import lines in app-location.js.

I suspect this is due to a resolver issue since the import path is not relative? Any help would be appreciated. Thanks

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