Right now, I’m trying to deploy emberjs with pyramid.
After building the emberjs using the following command: ember build --env production
Built project successfully. Stored in “dist/”. File sizes:
- simple-ember-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
- simple-ember-de4dc9c3179b4f6ea856de87158b2b42.js: 4.86 KB (1.46 KB gzipped)
- vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
- vendor-df1c67ec42b6f4dc04f93edd28280ddd.js: 690.94 KB (180.23 KB gzipped)
I put all the js files into my static folder in the pyramid app. When I attempt to view the site in my browser in the localhost:6543
In chrome dev tools > console, it shows the following: Uncaught ReferenceError: define is not defined simple-ember-de4dc9c3179b4f6ea856de87158b2b42.js
The js file is something like the following: “use strict”;define(“simple-ember/app”,[“exports”,“ember”,“simple-ember/resolver”,“ember-load-initializers”,“simple-ember/config/environment”],function(e,i,t,n,r){var a=void …
How should I resolve this problem?