使用CLI工具在Polymer构建中缺少< component> .html_script_0.js文件 [英] Missing <component>.html_script_0.js files in Polymer build using the CLI tool

查看:69
本文介绍了使用CLI工具在Polymer构建中缺少< component> .html_script_0.js文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行聚合物CLI的polymer build命令时遇到问题,它给了我以下反馈:

时显示错误消息

,并且我的内置文件夹(无论是捆绑还是未捆绑)都没有javascript文件.构建过程将<script>标记与javascript文件的src放置在我的javascript代码所在的位置,但是不会生成此文件.

我不知道这两个错误是否都相关,但是我不知道如何生成<component>.html_script_0.js文件.

解决方案

我遇到了同样的问题,发现有几个 问题报告. >

修复程序已被合并,并且是 v0.9.0 ,但我不确定是否可以解决刚刚在npm上播放.

I'm having problems running the polymer build command of the polymer CLI, it gives me the following feedback:

and neither of my built folders (bundled or unbundled) have the javascript files. The build process places <script> tag with the src of a javascript file in the place of my javascript code, but this files are not being generated.

I don't know if both errors are related, but I don't know what can I do to generate the <component>.html_script_0.js files.

解决方案

I had this same problem and saw that there were several issues reporting it.

It seems a fix has been already merged and is part of v0.9.0 but I'm not completely sure if the fix is up on npm just yet.

这篇关于使用CLI工具在Polymer构建中缺少&lt; component&gt; .html_script_0.js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆