html - Error: Could not read config from meta tag in EmberCLI -
i'm getting following error on embercli app: not read config meta tag name "my-app-name/config/environment"
i read has having correct content-for handlebars in app/index.html have of them there:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>my app name</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} <link rel="stylesheet" href="assets/vendor.css"> <link rel="stylesheet" href="assets/my-app-name.css"> {{content-for "head-footer"}} </head> <body> {{content-for "body"}} <script src="assets/vendor.js"></script> <script src="assets/my-app-name.js"></script> {{content-for "body-footer"}} </body> </html>
my config/environment.js file is:
/* jshint node: true */ module.exports = function(environment) { var env = { moduleprefix: 'my-app-name', environment: environment, contentsecuritypolicy: { 'connect-src': "'self' https://auth.firebase.com wss://*.firebaseio.com" }, firebase: 'https://my-app-name.firebaseio.com/', baseurl: '/', locationtype: 'auto', emberenv: { features: { // here can enable experimental features on ember canary build // e.g. 'with-controller': true } }, app: { // here can pass flags/options application instance // when created } }; if (environment === 'development') { // env.app.log_resolver = true; // env.app.log_active_generation = true; // env.app.log_transitions = true; // env.app.log_transitions_internal = true; // env.app.log_view_lookups = true; } if (environment === 'test') { // testem prefers this... env.baseurl = '/'; env.locationtype = 'none'; // keep test console output quieter env.app.log_active_generation = false; env.app.log_view_lookups = false; env.app.rootelement = '#ember-testing'; } if (environment === 'production') { } return env; };
am missing meta tag? reason browser displays when deploy app through firebase: {{content-for "head"}} {{content-for "head-footer"}} {{content-for "body"}} {{content-for "body-footer"}}
thanks!
ember default stores config data in meta tag. in app, opted out of storing in meta tag, think due neededing support ie8.
you can fix in ember-cli-build.js
or brocfile.js
adding line:
module.exports = function(defaults) { var app = new emberapp({ //... }); app.options.storeconfiginmeta = false; });
you can read more here: https://github.com/ember-cli/ember-cli/pull/2298
Comments
Post a Comment