After upgrading to angular 12, app is throwing run time error "Uncaught TypeError: i is not a function" - webpack-5

Recently I upgraded angular app to 12 version, ng serve and ng build works fine.
Pakage json for custom webpack
"#angular-builders/custom-webpack": "^12.0.0-beta.0",
"devDependencies": {
"#angular-devkit/build-angular": "~12.0.0"
}
After moving code to prod getting run time error like below and it's difficult to find out the root cause
Uncaught TypeError: i is not a function
at Object.12966 (main-es2015.18bf0e6d3748c0de495c.js:1)
at a (bootstrap:19)
at Object.6273 (main-es2015.18bf0e6d3748c0de495c.js:1)
at a (bootstrap:19)
at Object.41802 (main-es2015.18bf0e6d3748c0de495c.js:1)
at a (bootstrap:19)
at Object.12256 (main-es2015.18bf0e6d3748c0de495c.js:1)
at a (bootstrap:19)
at Object.62097 (main-es2015.18bf0e6d3748c0de495c.js:1)
at a (bootstrap:19)

Related

Ember upgrade to 3.27 TypeError: Ember.computed.alias is not a function

I'm upgrading a project from 3.26 to 3.27 using ember-cli-update, and then this error started happening, As I could see the error is raised when we try to access some method inside #ember/computed like alias. The first time the error occurred was here
I just commented the line to test and the same error occurred in another addon. So it's not related to the addon but something in the project

Error: ENOENT: no such file or directory, stat '/.VolumeIcon.icns'

Any idea why I would get this when trying to run component tests in Vue.js using Cypress? Is this a bug related to running on MacOS Catalina? (I ask because I think VolumeIcon.icns is a OS X thing??)
The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (/Users/MLaw/vue-app/tests/plugins/index.js)
Error: ENOENT: no such file or directory, stat '/.VolumeIcon.icns'
Error: The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (`/Users/MLaw/vue-app/tests/plugins/index.js`)
at Object.get (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/errors.js:968:15)
at EventEmitter.handleError (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/index.js:159:20)
at EventEmitter.emit (events.js:310:20)
at ChildProcess.<anonymous> (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/util.js:19:22)
at ChildProcess.emit (events.js:310:20)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
My index.js looks like:
const preprocessor = require('#cypress/vue/dist/plugins/webpack');
module.exports = (on, config) => {
preprocessor(on, config);
// IMPORTANT return the config object
return config
};
sudo touch /.VolumeIcon.icns
I use M1 MacOS, it works for me.

` ember server` throws error, not able to run the app

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?

"Error: ENOENT: no such file or directory" on Ember CLI Mirage

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

DoctrineModule "reflection exception" in ZF2

Working with the Zend Framework 2 application skeleton, I have installed DoctrineModule and DoctrineORMModule according to the instructions. I am getting this error when trying to execute the doctrine.php command line tool. (FYI I do not get the error if I uninstall DoctrineORMModule)
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Doctrine\DBAL\Connection does not exist'...
Any ideas?