Meteor Javascript Uncaught ReferenceError: Package is not defined - javascript

I am new Meteor and have recently been working on a starter project. Everything was going just fine and was halfway through when all of a sudden Meteor stopped working. However, I am have a lot of trouble pinpointing what is wrong.
My console still reads
[[[[[ ~/Desktop/Coding/Meteor/mine ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
However, when I open the Chrome console I am getting
Uncaught ReferenceError: Package is not defined(anonymous function)
These packages are defined for us by Meteor and I have not touched them once (nor do I know how to). Can someone help point me in the right direction? I tried re-installing Meteor as well as starting a new sample project and I am still getting the same errors in the console.

Related

error appears in chrome extension when importing selenium-webdriver in javascript

I am building a web extension to run automated tests using javascript, when installing and importing selenium-webdriver the extension crash showing the following message:
Uncaught TypeError: Cannot read properties of undefined (reading 'O_CREAT')
at ./node_modules/selenium-webdriver/node_modules/tmp/lib/tmp.js
this error appears for selenium-webdriver version 4.7.0
I tried older versions, till I reach version 4.3.0, then it showed a different error
Uncaught ReferenceError: Buffer is not defined
at ./node_modules/selenium-webdriver/node_modules/ws/lib/constants.js
Has anybody faced this before? and how can I solve it?
I searched everywhere for this error, but no solution. I could not figure out why it is showing this error. I tried deleting the node modules and re-installing, clearing the cache then reinstalling, installing many package that might be related to it but no luck at all.

React Build Failing - how to troubleshoot

I have a React Frontend Project that works correctly with npm start - the frontend works as expected when I run it this way.
However, when I npm run build and then serve the file with express, the frontend fails. The frontend doesn't load in my browser and I see the error: Uncaught TypeError: l[e] is undefined on Firefox and Uncaught TypeError: Cannot read property 'call' of undefined on Chrome.
The stack trace associated with those errors isn't very helpful as it just directs to chunk.js. I need to somehow figure out what's causing this issue. My boss suggested someone else working on the project likely made a coding error and we'll have to clean up everything to debug (this setup was working a week ago). Is there anything I can do to debug this short of going through every line of code?
Thank you!

Uncaught Error: jQuery not found running Meteor 1.10.2 app

When I run my Meteor (version 1.10.2) app on firefox. the console prints:
Error: jQuery not found dombackend.js:8:8
module dombackend.js:8
fileEvaluate modules-runtime.js:346
require modules-runtime.js:248
require modules-runtime.js:268
<anonymous> blaze.js:3735
<anonymous> blaze.js:3754
TypeError: Package.blaze is undefined spacebars.js:22:13
<anonymous> http://localhost:3000/packages/spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:22
<anonymous> http://localhost:3000/packages/spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:331
I read other posts but it was not the same exact error (i.e. some map file) and not the same meteor version.
I am copying some code files over from old app that I want to run under the current meteor version.
Any suggestions on how to fix these errors?
Thanks
Edit to answer questions in the comment:
App originally ran under meteor 1.7.0.1.
App now is expected to run by meteor 1.10.2 installed by chocolatey on windows 10.
run this cmd meteor add jquery will be work
I am copying some code files over from old app
From my understanding, you are trying to upgrade meteor from 1.7.0.1 to 1.10.2
If this the case, I would argue coping source code is the right approach to the job. you miss all the package dependencies in the old setup.
I would suggest you keep the source code in the old package, just bumping up the meteor version, update dependent packages, try to run the app, then fix the broken changes if necessary.

Error running a react-native Android app - BatchedBridge

I am trying to bring-up our react-native app on Android. It is working fine on iOS. When I try to run the debug build, react-native throws the below error:
TypeError: undefined is not an object
(evaluating 'require('BatchedBridge').flushedQueue')
("line":1 in generated bundle)
How do I figure out what is causing the error?
Any advice is greatly appreciated. Saw online that sometimes such an error message can contain the column, but in my case there is only the line number. I am running react-native 0.17.
Had a messed-up path, in one place. Fixing that alleviated the problem.
It seems that react-native Android is ready for business, as much as anything...
It would be nice to have better diagnostics, and perhaps integrate react-native Android with an IDE to the point where the IDE [plugin] would be able to make inclusion of Android modules into config more seamless. Xcode linking configuration is also not perfect, but it is slightly easier on developers.
Since react-native is a young project, there is no reason to not expect such tools in the future, I hope.

jquery-migrate error on wordpress deployment

I am having an error after I deploy my WordPress from localhost to online, I think its on the jQuery migrate file.
Error:
TypeError: jQuery.attrHooks is undefined.
It's my first time using WordPress and deploying it online, by the way. This error doesn't appear when I'm still developing it locally. I'm not really sure if this is a problem on WordPress or on jQuery.
How can I fix this please?

Categories

Resources