SCRIPT5007: Unable to get value of the property 'id': object is null or undefined
AbstractMixedCollection.js?_dc=1343805300426, line 147 character 10
Issue is resolved, there was some error in Extjs code. The semicolon was missing at the end of the sentence.
Related
I am trying to deploy my portfolio website. It shows the proper log-in animation but then just shows a white screen. I have no idea why this is happening, the logged error message references unhelpful code from the site generator.
the error is in console. and in Skills.js file in line 48.
TypeError: Cannot read properties of undefined (reading 'map')
you can fixed it by adding question mark like this :
{ skillsSection.skills?.map((skills, i)=> ....
and there is another error : twitter.js:14 Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
in twitter.js file in line 14
just add question mark there too. like this :
if (!document.getElementById("twitter")?.innerHTML.includes("iframe"))
Error:
src\images\navbar.js
Line 2:11: Parsing error: Unexpected token, expected "from" (2:11)
src\navbar.js
Line 2:11: Parsing error: Unexpected token, expected "from" (2:11)
the project on GitHub: https://github.com/PufflyMan/airbnb-exp-clone
It's pretty straightforward code but no matter what I tried, I couldn't fix it. Thanks for attention!
It just fixed itself. I didn't do anything
Ext.decode() is very strict now. It throws error when there's a comment in the JSON or any invalid json format, such as no double quote.
How can I disable such checking?
Ext.decode('{ test: test}');
OR
Ext.decode(`{//test
"include": [
"main.json"
]
}`)
Uncaught Error: You're trying to decode an invalid JSON String:
But this will not throw error in 6.2.0
Like devbnz mentioned, there's a 2nd param, if set to true, method wont throw an error and will return null instead.
https://docs.sencha.com/extjs/6.5.3/classic/Ext.html#method-decode
But yet prior to 6.6.0, Ext.decode() still can accept invalid json. It was fixed in 6.6.0
https://docs.sencha.com/extjs/6.6.0/guides/whats_new/release_notes.html
EXTJS-18443 JSON decoder should throw exception on invalid syntax
[UPDATE] My answer is wrong. There's no solution for now. You cannot decode a JSON with comment using Ext.decode in ExtJs7
I am trying to minify my code and i always get this error when it runs clean-css.
/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/selectors/extractor.js:66
return name.replace(/^\-\w+\-/, '').match(/([a-zA-Z]+)/)[0].toLowerCase();
^
TypeError: Cannot read property '0' of null
at findNameRoot (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/selectors/extractor.js:66:59)
at extract (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/selectors/extractor.js:36:9)
at restructure (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/selectors/restructure.js:297:22)
at optimize (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/selectors/advanced.js:71:5)
at minify (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/clean.js:228:5)
at whenSourceMapReady (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/clean.js:135:7)
at Object.whenDone (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/clean.js:155:14)
at processNext (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/imports/inliner.js:105:13)
at importFrom (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/imports/inliner.js:79:10)
at ImportInliner.process (/home/k1ngsley/Projects/mobile_rea/partners-mobile-app/node_modules/clean-css/lib/imports/inliner.js:38:10)
Error: Hook failed with error code 8: /home/k1ngsley/Projects/mobile_rea/partners-mobile-app/hooks/after_prepare/070_uglify.js
at /home/k1ngsley/npm/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:195:23
at _rejected (/home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:797:24)
at /home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:823:30
at Promise.when (/home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:1035:31)
at Promise.promise.promiseDispatch (/home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:741:41)
at /home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:557:44
at flush (/home/k1ngsley/npm/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:448:13)
I have read different posts that says remove commented lines etc but all hasnt worked out for me.
Any one has any other ideas or ways to solve this issue
Take a look at min.css utility that is more fastest and fault-tolerance.
I get the above error notice in many pages on my drupal site.
Notice: Undefined index: node in workflow_tokens() (line 188 of
/home/lafune27/public_html/sites/all/modules/workflow/workflow.module).
Notice: Trying to get property of non-object in workflow_tokens()
(line 189 of
/home/lafune27/public_html/sites/all/modules/workflow/workflow.module).
Kindly help.
here's a
Looks like it might be a bug. There is an issue open for it on drupal.org. See comment #2 in http://drupal.org/node/1485816