How to setup local Environment for Ember JS - ember.js

i'am new to ember Js.when i setup local environment for Ember Js getting some error and i have installed following software 1) Node Js 2)git 3)ebmer-cli 4)bower 5)bootstarp and what else i need to install.when try to hit index.html(from app folder) in browser i'm getting following Exception in browser console & browser.kindly refer image

From what I can see you are trying to open your application directly from the filesystem.
You need to run ember server command in your project directory and navigate to http://localhost:4200

Related

404 not found and disallowed mime type when serving svelteKit front-end with Flask server

So I've been trying to serve my svelteKit app using Flask but it seems like Flask doesn't getting any assets such as css or js. Maybe it was due to my folder stucture configuration using FLASK? Does anyone have the solution for this? the npm run preview seems to be working just fine.
This is how I set up the Flask app:
app = Flask(__name__,static_folder="static",template_folder="build", static_url_path="/build/static")
Stucture of the built project
Script tag inside index.html
The front-end when served
I've tried changing the import path inside index.html script tag as well as ensuring the files are existed in the location but nothing changed.

Intellij with ember error: "you have to be inside an ember-cli project in order to use build command"

I have created a project which is configured to use ember-cli on the webapp folder before launching the resulting code, however I get that error when the ember compiler is called.
Here are some pictures:
[picture1]
[picture2]2
Here is the project folder. I have done ember init on the webapp folder:
enter image description here
Is it something related to ember or is it something related to my run configuration?
This is duplicated. As I mention in another your post, you should run ember init in that folder. You don't have ember project structure yet

Ember build for production not building properly

I am building my ember app in production environment and deploying it on my local wamp server(apache server). But when I copy the file and open the app using url, the handlebar template application.hbs or index.hbs is not rendered.
I am building my project using
ember build --environment production --output-path dist/
But when I open the path 127.0.0.1/path-to-my-project
I get following error in console.
Uncaught Error: Could not find module `ember-data/-private\system\references\record` imported from `ember-data/-private/system/references`
vendor-192d3eef66f0205b64b4acf903f80f63.js:1
I am getting this error when building in production environment,building in development environment is working fine
I checked the documentation and sources available online, but couldn't find the cause for this error.
Please Help...
On Windows, it's mixing / and \s. See:
https://github.com/emberjs/data/pull/4205
If you're using the latest Ember, the solution is to upgrade to Ember-Cli 2.4.2 and use Ember Data 2.4.0.

Is it possible to run an ember-cli app without an HTTP server?

I've been working on an ember app and I'm trying to create a production build so my manager can look at it, I ran
ember build --environment=production
but it when I open the index.html file I get a 404 error for my app.css and app.js files, this only happens when the files are not served by an HTTP server. Is it possible to run the files locally?
Not really, when using the file URI scheme file://path/to/your/app the relative paths used in index.html won't be resolved properly. It will also break the router even if you correct the paths manually.

Ember Inspector won't detect application using Grunt

I'm currently digging into Ember.js, using Yeoman as an automation tool for project deployment. Since Grunt is already included in Yeoman, I'm using it to fire up a Grunt Server everytime I'm working on my project.
I just started my very first Ember.js project using Yeoman when I realized, that Chrome's Ember Inspector Extension isn't able to detect my application as an Ember.js app when I'm running my Grunt Server at localhost. I've already checked the "Allow access to file URLs" option within the Extension settings, still no detection.
When I work on the project without running the Grunt Server, Ember Inspector detects my application immediately.
Any solution how I can use the Inspector while running Grunt?
Change your grunt to run on port 80.
Honestly it might be a problem localhost not being allowed with the extension, but I have a hard time believing that. Can't connect to localhost from Chrome extension