<ion-menu-button autoHide="false"></ion-menu-button>
At first load it give an error:
zone.js:1102 Unhandled Promise rejection: Cannot read properties of undefined (reading 'offsetWidth') ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read properties of undefined (reading 'offsetWidth')
If we reload then working fine please help me to fix it...
Related
My task is to upgrade angular from version 10 to 12. After upgrading and following all the steps I see the following error in the console when launching the application. Unfortunately, it's not clear where exactly this error is coming from as the logs are encrypted.
How can I find out exactly where this error pops up?
ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of null (reading 'name')
TypeError: Cannot read properties of null (reading 'name')
at main.js:1:165605
at Object._C (main.js:1:165676)
at template (982.js:1:165355)
at U_ (main.js:1:110880)
at vc (main.js:1:109020)
at Ec (main.js:1:117150)
at main.js:1:109221
at vc (main.js:1:109232)
at Hs.create (main.js:1:162762)
at Ep.createComponent (main.js:1:158194)
at X (polyfills.js:1:17687)
at X (polyfills.js:1:17222)
at polyfills.js:1:18528
at v.invokeTask (polyfills.js:1:8270)
at Object.onInvokeTask (main.js:1:176525)
at v.invokeTask (polyfills.js:1:8191)
at v.runTask (polyfills.js:1:3329)
at A (polyfills.js:1:10654)
I'm trying to scrape https://www.amazon.com/s?k=macbook+pro&ref=nb_sb_noss
The below code works when I execute it chrome dev tools (console) but it throws an error: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'innerText') in puppeteer. I'm able to scrape the page with className identifiers for other elements, but not this one.
let raters = document.getElementsByClassName('s-result-item s-asin sg-col-0-of-12 sg-col-16-of-20 sg-col s-widget-spacing-small sg-col-12-of-16')[0].querySelectorAll(".a-size-base.puis-light-weight-text.s-link-centralized-style", "span")[0].innerText
How do I fix this? Thanks
I want to set up a repository that uses Storybook and Stylelint, but got the error below.
TypeError: Cannot read properties of undefined (reading 'stringify')
at Function.stringify (#####/node_modules/postcss-syntax/stringify.js:8:38)
at MapGenerator.generate (#####/node_modules/stylelint/node_modules/postcss/lib/map-generator.js:323:12)
at LazyResult.stringify (#####/node_modules/stylelint/node_modules/postcss/lib/lazy-result.js:277:20)
at LazyResult.runAsync (#####/node_modules/stylelint/node_modules/postcss/lib/lazy-result.js:443:17)
at LazyResult.async (#####/node_modules/stylelint/node_modules/postcss/lib/lazy-result.js:221:30)
at LazyResult.then (#####/node_modules/stylelint/node_modules/postcss/lib/lazy-result.js:206:17)
Here's the repository that reproduces this issue
How can I fix this?
I don't know suddenly what happened but now I am facing some issue. Till the time app was working fine. But now whenever I am trying to run the app from android studio or xcode, I can see below error on chrome console. I did some research but not able to find anything. It would be great if someone could help me.
I am not using any kind of http service.
Current configuration of project-
1. ionic - v3
2. Angular - 4
3. Cordova
Unhandled Promise rejection: Object(...) is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Object(...) is not a function
at new ApplicationRef (vendor.js:5187)
at _createClass (vendor.js:8954)
at _createProviderInstance (vendor.js:8916)
at initNgModule (vendor.js:8849)
at new NgModuleRef_ (vendor.js:9575)
at createNgModuleRef (vendor.js:9564)
at Object.debugCreateNgModuleRef [as createNgModuleRef] (vendor.js:11389)
at NgModuleFactory_.create (vendor.js:12091)
at vendor.js:4987
at t.invoke (polyfills.js:3) TypeError: Object(...) is not a function
at new ApplicationRef (file:///android_asset/www/build/vendor.js:5187:64)
at _createClass (file:///android_asset/www/build/vendor.js:8954:20)
at _createProviderInstance (file:///android_asset/www/build/vendor.js:8916:26)
at initNgModule (file:///android_asset/www/build/vendor.js:8849:32)
at new NgModuleRef_ (file:///android_asset/www/build/vendor.js:9575:9)
at createNgModuleRef (file:///android_asset/www/build/vendor.js:9564:12)
at Object.debugCreateNgModuleRef [as createNgModuleRef] (file:///android_asset/www/build/vendor.js:11389:12)
at NgModuleFactory_.create (file:///android_asset/www/build/vendor.js:12091:25)
at file:///android_asset/www/build/vendor.js:4987:43
at t.invoke (file:///android_asset/www/build/polyfills.js:3:14976)
Suddenly im getting error when i start ionic project
TypeError: Cannot read property 'substr' of undefined
at Function.<anonymous> (D:\Work\Prince\TakeToTake\node_modules\source-map\lib\source-node.js:115:26)
at Array.forEach (native)
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (D:\Work\Prince\TakeToTake\node_modules\source-map\lib\sour
at Function.SourceNode_fromStringWithSourceMap [as fromStringWithSourceMap] (D:\Work\Prince\TakeToTake\node_modules\source-map\lib
at SourceMapSource.node (D:\Work\Prince\TakeToTake\node_modules\webpack-sources\lib\SourceMapSource.js:39:21)
at ReplaceSource.node (D:\Work\Prince\TakeToTake\node_modules\webpack-sources\lib\ReplaceSource.js:70:30)
at CachedSource.node (D:\Work\Prince\TakeToTake\node_modules\webpack-sources\lib\CachedSource.js:18:24)
at D:\Work\Prince\TakeToTake\node_modules\webpack-sources\lib\ConcatSource.js:37:50
at Array.map (native)
at ConcatSource.node (D:\Work\Prince\TakeToTake\node_modules\webpack-sources\lib\ConcatSource.js:36:63)
Please Help
Found the error
i was implement two Component inside one TS file that's why the nodeJS confuse to run which component
now i created another ts file to implement the component
thanks for the comments