I am following this tutorial: https://guides.emberjs.com/v2.8.0/tutorial/installing-addons/
and when i get to adding ember-cli-mirage it comes up with a build error and wont load the app:
Richards-MacBook-Air:super-rentals rpt$ ember s
WARNING: Node v8.9.1 has currently not been tested against Ember CLI and may result in unexpected behaviour.
Just getting started with Ember? Please visit http://localhost:4200/ember-getting-started to get going
Livereload server on http://localhost:49154
Serving on http://localhost:4200/
{ Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TLSWrap.onread (net.js:615:25)
code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
File: ember-cli-mirage/utils/inflector.js
The Broccoli Plugin: [broccoli-persistent-filter:Babel] failed with:
SyntaxError: ember-cli-mirage/utils/inflector.js: Unexpected token (4:14)
export { singularize, pluralize } from 'ember-inflector';
export { Ember.String.capitalize as capitalize, Ember.String.camelize as camelize, Ember.String.dasherize as dasherize, Ember.String.underscore as underscore };
at Parser.pp.raise (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/location.js:24:13)
at Parser.pp.unexpected (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/util.js:82:8)
at Parser.pp.expect (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/util.js:76:33)
at Parser.pp.parseExportSpecifiers (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/statement.js:772:12)
at Parser.pp.parseExport (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/statement.js:701:28)
at Parser.parseExport (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/plugins/flow.js:713:20)
at Parser.pp.parseStatement (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/statement.js:115:90)
at Parser.parseStatement (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/plugins/flow.js:655:22)
at Parser.pp.parseTopLevel (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/statement.js:30:21)
at Parser.parse (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/parser/index.js:70:17)
at Object.parse (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/babylon/lib/index.js:45:50)
at Object.exports.default (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/helpers/parse.js:36:18)
at File.parse (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/file/index.js:574:40)
at File.parseCode (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/file/index.js:691:20)
at /Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/pipeline.js:167:12
at File.wrap (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/file/index.js:639:16)
at Pipeline.transform (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/babel-core/lib/transformation/pipeline.js:165:17)
at /Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:123:26
at initializePromise (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:567:5)
at new Promise (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1039:33)
at Object.transformString (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:117:12)
at Babel.transform (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/index.js:110:22)
at Babel.processString (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/index.js:216:15)
at Promise.then.result.output (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:41:23)
at initializePromise (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:567:5)
at new Promise (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1039:33)
at /Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:40:18
at tryCatch (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:538:13)
at publish (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:508:7)
at flush (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:2415:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
The broccoli plugin was instantiated at:
at Babel.Plugin (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/broccoli-plugin/index.js:7:31)
at Babel.Filter [as constructor] (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/index.js:64:10)
at new Babel (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/broccoli-babel-transpiler/index.js:37:10)
at EmberApp._addonTree (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:910:29)
at EmberApp._processedVendorTree (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:944:20)
at EmberApp._processedExternalTree (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:975:21)
at EmberApp.appAndDependencies (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1071:30)
at EmberApp.javascript (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1201:34)
at EmberApp.toArray (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1606:10)
at EmberApp.toTree (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1628:30)
at module.exports (/Users/rpt/projects/super-rentals/ember-cli-build.js:23:14)
at Class.setupBroccoliBuilder (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/models/builder.js:74:19)
at Class.init (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/models/builder.js:54:10)
at Class.superWrapper [as init] (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/core-object/lib/assign-properties.js:32:18)
at new Class (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/core-object/core-object.js:32:33)
at Class.run (/Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/tasks/serve.js:15:19)
at /Users/rpt/projects/super-rentals/node_modules/ember-cli/lib/commands/serve.js:76:24
at tryCatch (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:538:13)
at /Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:606:14
at flush (/Users/rpt/projects/super-rentals/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:2415:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
Can anyone point me in the right direction as to whats going wrong?
Im using ember 2.8.0 and using the latest version of ember-cli-mirage.
Please bare in mind I am really new to ember.
Is there a specific reason you are starting with Ember 2.8? Unless there is, I would suggest fully removing Ember-CLI (npm uninstall -g ember-cli) and starting over with Ember 3.0.
The reason I suggest that is that the errors you are seeing there look to be due to Babel upgrades that Mirage is expecting in the latest version of Mirage but that don’t exist in the older version of Ember that you have installed.
Related
I've recently updated ember-cli and my app to 4.10.0, and trying to build with:
ember serve
throws the following error:
Cannot find module './transforms/babel-plugin-convert-existence-checks-to-macros'
I've looked to see what module is missing. I came up with trying to install/reinstall ember-cli-babel and that didn't work either.
The ember app is on LAMP: Raspbian Linux 11 OS, Apache 2.4.54, MariaDB 10.5.15, and PHP/Laravel 8 backend
ember-cli: 4.10.0
ember-source: 4.10.0
ember-cli-babel: 7.26.11
I don't have any special ember-cli-build configurations, here it is:
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
});
return app.toTree();
}
EDIT: ERROR STACK
- name: Error
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: Error: Cannot find module './transforms/babel-plugin-convert-existence-checks-to-macros'
Require stack:
- /var/www/html/.../node_modules/#ember-data/private-build-infra/src/debug-macros.js
- /var/www/html/.../node_modules/#ember-data/private-build-infra/src/stripped-build-plugins.js
- /var/www/html/.../node_modules/#ember-data/private-build-infra/src/addon-build-config-for-data-package.js
- /var/www/html/.../node_modules/ember-data/index.js
- /var/www/html/.../node_modules/ember-cli/lib/models/package-info-cache/package-info.js
- /var/www/html/.../node_modules/ember-cli/lib/models/package-info-cache/index.js
- /var/www/html/.../node_modules/ember-cli/lib/models/project.js
- /var/www/html/.../node_modules/ember-cli/lib/utilities/get-config.js
- /var/www/html/.../node_modules/ember-cli/lib/utilities/instrumentation.js
- /var/www/html/.../node_modules/ember-cli/lib/cli/index.js
- /usr/local/lib/node_modules/ember-cli/bin/ember
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Function.resolve (node:internal/modules/cjs/helpers:109:19)
at debugMacros (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/debug-macros.js:6:44)
at module.exports (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/stripped-build-plugins.js:11:48)
at Class.buildBabelOptions (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/addon-build-config-for-data-package.js:149:62)
at Class._setupBabelOptions (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/addon-build-config-for-data-package.js:168:33)
at Class.included (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/addon-build-config-for-data-package.js:184:12)
at Class.superWrapper [as included] (/var/www/html/.../node_modules/core-object/lib/assign-properties.js:34:20)
at /var/www/html/.../node_modules/ember-cli/lib/models/addon.js:497:26
at Array.reduce (<anonymous>)
at Class.eachAddonInvoke (/var/www/html/.../node_modules/ember-cli/lib/models/addon.js:494:24)
at Class.included (/var/www/html/.../node_modules/ember-cli/lib/models/addon.js:769:10)
at Class.superWrapper [as included] (/var/www/html/.../node_modules/core-object/lib/assign-properties.js:34:20)
at Class.included (/var/www/html/.../node_modules/#ember-data/private-build-infra/src/addon-build-config-for-data-package.js:174:28)
at Class.superWrapper [as included] (/var/www/html/.../node_modules/core-object/lib/assign-properties.js:34:20)
at /var/www/html/.../node_modules/ember-cli/lib/broccoli/ember-app.js:721:15
After days of googling and trying a variety of things, I was able to get my ember application to launch again. Here is what worked for me, for whatever reason.
I removed all the files inside my projects node_modules directory
sudo rm -r node_modules/*
and reinstalled all those packages with
npm install
After this, and I'm not sure if this really had anything to do with the resolution, I updated npm from 9.4.1 to 9.4.2
npm install -g npm#9.4.2
Once all of those commands executed successfully, I ran
ember serve
and I no longer received the above error.
I hadn't thought I ever used sudo to install any npm packages, at least I try to make it a habit not to. But, it's possible I screwed up during my many butchered attempts at updating my ember app from 4.9 to 4.10.
I am building a web app using Ember. I created the project with ember new test-app and have made no changes to the generated files. When I run ember serve, I immediately receive the following error:
The Broccoli Plugin: [BroccoliMergeTrees: Addon#compileAddon(ember-welcome-page) ] failed with:
Error: Couldn't find preset "es2015" relative to directory "/Users/jacob"
at /Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map ()
at OptionManager.resolvePresets (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at Promise (/Users/jacob/Desktop/test-app/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:102:26)
The broccoli plugin was instantiated at:
at BroccoliMergeTrees.Plugin (/Users/jacob/Desktop/test-app/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/jacob/Desktop/test-app/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:16:10)
at Function.BroccoliMergeTrees [as _upstreamMergeTrees] (/Users/jacob/Desktop/test-app/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:10:53)
at mergeTrees (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/broccoli/merge-trees.js:85:33)
at Class.compileAddon (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:1092:12)
at Class.treeForAddon (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:746:26)
at Class.treeForAddon (/Users/jacob/Desktop/test-app/node_modules/ember-welcome-page/index.js:27:41)
at Class.superWrapper [as treeForAddon] (/Users/jacob/Desktop/test-app/node_modules/core-object/lib/assign-properties.js:34:20)
at Class._treeFor (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:557:33)
at Class.treeFor (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:517:21)
I referred to this question for help, but I still received the same error after trying the solution.
I am running ember-cli v2.16.2 and node v8.9.0 on macOS High Sierra. In my node installation, the only three global modules I have installed are bower, broccoli-cli, and ember-cli.
Please do clean reinstall of ember-cli package.
npm uninstall -g ember-cli
npm cache clean --force
npm install -g ember-cli
Then run your ember new command once again and test it.
I am a absolute new with emberjs. I am just following this tutorial to create my first app : http://yoember.com/ but as like tutorials instruction I am running ember server but I thrown with error like :
The Broccoli Plugin: [ConfigReplace] failed with:
Error: Build Canceled: Broccoli Builder ran into an error with Funnel plugin. �
at new BroccoliBuildError (F:\EmberJS\libraray-app\node_modules\broccoli-builder\lib\broccoli-build-error.js:40:9)
at F:\EmberJS\libraray-app\node_modules\broccoli-builder\lib\builder.js:168:19
at tryCatch (F:\EmberJS\libraray-app\node_modules\rsvp\dist\rsvp.js:539:12)
at invokeCallback (F:\EmberJS\libraray-app\node_modules\rsvp\dist\rsvp.js:554:13)
at publish (F:\EmberJS\libraray-app\node_modules\rsvp\dist\rsvp.js:522:7)
at publishRejection (F:\EmberJS\libraray-app\node_modules\rsvp\dist\rsvp.js:457:3)
at flush (F:\EmberJS\libraray-app\node_modules\rsvp\dist\rsvp.js:2414:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
The broccoli plugin was instantiated at:
at ConfigReplace.Plugin (F:\EmberJS\libraray-app\node_modules\broccoli-plugin\index.js:7:31)
at new ConfigReplace (F:\EmberJS\libraray-app\node_modules\broccoli-config-replace\index.js:13:10)
at EmberApp.index (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\broccoli\ember-app.js:686:12)
at EmberApp.toArray (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\broccoli\ember-app.js:1661:12)
at EmberApp.toTree (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\broccoli\ember-app.js:1684:38)
at module.exports (F:\EmberJS\libraray-app\ember-cli-build.js:22:14)
at Builder.setupBroccoliBuilder (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\models\builder.js:56:19)
at new Builder (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\models\builder.js:30:10)
at ServeTask.run (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\tasks\serve.js:24:55)
at Promise.resolve.then (F:\EmberJS\libraray-app\node_modules\ember-cli\lib\models\command.js:242:46)
Livereload server on http://localhost:49153
How to fix this?
I'm an extreme beginner. I'm trying to use Mirage based on the guides shown on the ember website. All my code is more or less the same as in their guide. However, when I go to localhost, I get a Build Error and the following:
dateisrael/mirage/config.js (in /Users/aarontaylor/dateisrael/tmp/babel-input_base_path-B9ZXdbHw.tmp/0)
The Broccoli Plugin: [Babel] failed with:
Error: ENOENT: no such file or directory, open '/Users/aarontaylor/dateisrael/tmp/babel-output_path-qYd6ESrZ.tmp/dateisrael/mirage/config.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Babel.asyncOutputFilteredFile (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/index.js:216:23)
at lib$rsvp$$internal$$tryCatch (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:1019:11)
at lib$rsvp$asap$$flush (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:1198:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
The broccoli plugin was instantiated at:
at Babel.Plugin (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/node_modules/broccoli-plugin/index.js:7:31)
at Babel.Filter [as constructor] (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/broccoli-persistent-filter/index.js:38:10)
at new Babel (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/index.js:34:10)
at Babel (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/index.js:29:12)
at Object.registry.add.toTree (/Users/aarontaylor/dateisrael/node_modules/ember-cli-babel/index.js:21:52)
at /Users/aarontaylor/dateisrael/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:184:26
at Array.forEach (native)
at processPlugins (/Users/aarontaylor/dateisrael/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:182:11)
at module.exports.preprocessJs (/Users/aarontaylor/dateisrael/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:175:10)
at EmberApp.appAndDependencies (/Users/aarontaylor/dateisrael/node_modules/ember-cli/lib/broccoli/ember-app.js:1044:25)
I tried ember generate ember-cli-mirage again after it didn't work but this didn't help.
What can I do to fix this?
Thanks
When I ember build or ember server, no issues.
When I try to ember build --environment=production, I get this:
version: 0.2.0
Build failed.
Unexpected character '#'
Error
at new JS_Parse_Error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:196:18)
at js_error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:204:11)
at parse_error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:313:55)
at Object.next_token [as input] (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:561:9)
at next (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:660:25)
at Object.parse (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:646:15)
at APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:82:33
at Array.forEach (native)
at Object.exports.minify (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:77:15)
at UglifyWriter.processFile (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/index.js:98:25)
How can I find where this unexpected # is?