谷歌云上的Angular 8,应用程序不工作
我已使用以下yaml向GCP部署了一个应用程序:谷歌云上的Angular 8,应用程序不工作,angular,google-cloud-platform,Angular,Google Cloud Platform,我已使用以下yaml向GCP部署了一个应用程序: runtime: python27 api_version: 1 threadsafe: true handlers: - url: / static_files: app/index.html upload: app/index.html application_readable: true - url: / static_dir: app application_readable: true 我使用了applicati
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: app/index.html
upload: app/index.html
application_readable: true
- url: /
static_dir: app
application_readable: true
我使用了application\u readable
项来呈现原始mime类型,但是您可以在下面的图像中看到它被呈现为纯文本
我已经让sue知道部署了正确的app.yaml
感谢当前的解决方案,现在可以在您的
中添加type=“text/javascript”
比如说
<script src="runtime-es2015.js" type="module" ></script>
<script src="polyfills-es2015.js" type="module" ></script>
变成
<script src="runtime-es2015.js" type="text/javascript" ></script>
<script src="polyfills-es2015.js" type="text/javascript" ></script>
这只是一个黑客。希望有人能妥善解决这个问题