Paper element import not working in python

隐身守侯 提交于 2019-12-01 23:32:57

问题


Paper elements are not able to import in python-django environment, and an import error arises

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

I've tried to build the same project using polymer build still there is no improvement.

I've placed the polymer components inside a static folder in an app My project -> App-> static -> polymer files

Environment details:

OS: ubuntu 18.04
Lang: python 3.6- django 1.11
polymer version: 3

The error is from the js files present in the node_modules folder which is part of polymer project

来源:https://stackoverflow.com/questions/54567339/paper-element-import-not-working-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!