Ember build for production not building properly - ember.js

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.

Related

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

Error installing ember-cli-mocha

I'm trying to setup an EmberJS project using ember-cli. I want to be able to use Mocha/Chai instead of the default qunit, but I am getting an error at the first step on installing ember-cli-mocha.
I create the new ember project with ember new my-project and then from within the project folder I run ember install ember-cli-mocha, selecting Yes to overwrite the tests/test-helper.js.
In the output, immediately following the Installed browser packages via Bower. message I see:
Package ember-cli/ember-cli-test-loader=ember-cli/ember-cli-test-loader not found
I can't find any information on this directly. I've tried installing the various packages themselves, before the ember-cli-mocha package via npm and bower, but I always get that message when installing ember-cli-mocha through ember-cli.
Anyone else have experience with this? Thanks in advance!

How to setup local Environment for 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

Is the ember cli addon installation broken in Ember Cli 0.1.11?

I'm using ember cli for some small test projects to evaluate the concepts. Normal use of ember cli works for me. After 10 created small projects and using blueprints and the pod structure I decided to try the development and usage of addons. The creation of addons was not the real problem.
The problem is I can not successfully install a created addon. I also tried to install other addons created by other ember-cli users. The result is always the same. I got no error message and the addon could be found inside the node_modules directory of the addon consuming application but there is nothing installed in the app directory and it's sub directories !!!
What can I do to find the problem ?
Do you have a public available addon which could be installed definitely without problems ?
Are there log files which could be inspected to see more details (hidden error messages) ?
Best regads
Andreas
The current Ember CLI version is 0.0.12. I'm not aware of any issues with addon installations. If the issue persist, you should create an issue on ember-cli issue tracker.

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