renders an error while loading the same code with all imports in chrome extension, i.e length Cannot read properties of undefined (reading 'length')
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length') at Module.inferFromImplicitShape (util_base.js:304:21)
i have been hitting my head in this issue since two weeks, can you please help with this for a side project of min
e
link to my code repo https://github.com/amitmaliik/my-extension
this is the code which i am using below:

shows issuse in util_base.js file

@rthadur can you please help with this issue, I have been blocked on my product due to this issue for almost a month.
Thank you for the code , I was able to reproduce the same . Similar issue exists on windows for speech-commands here https://github.com/tensorflow/tfjs/issues/6358
@rthadur, can you help me with a concrete solution for this issue? i couldn't find concrete solution at https://github.com/tensorflow/tfjs/issues/6358 which you mentioned above wrt to this issue.
@jinjingforever can you please help resolve this issue, I have been stuck with my side project for more than a month. Much needed help @jinjingforever @rthadur
Hi @amitmaliik
Sorry for the delay.. I was busy with other projects..
I cloned your repo, but I couldn't reproduce the errors.. I can see the embedding being printed after I change the counter:
The commands I ran:
cd my-extension
yarn
yarn build
And I clicked the "Load unpacked" button and picked the "build" directory.
Any ideas?
it worked for me for yarn but wasn't working with npm. but really appreciate your help on this issue.
Hi @amitmaliik ,
I am able to clone and install the extension. It is working fine with the help of yarn. Here is a screenshot:
However, when I try to run it with npm using the latest versions of the dependencies,
"dependencies": {
"@tensorflow-models/universal-sentence-encoder": "latest",
"@tensorflow/tfjs": "latest",
"@tensorflow/tfjs-backend-cpu": "latest",
"@tensorflow/tfjs-core": "latest",
"@tensorflow/tfjs-node": "latest"
}
I am getting the following error:
Could you please check from your side and let us know if you are getting the same error?
Thank You !!
CC: @jinjingforever
Hi, @amitmaliik
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The TFJs team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TFJs version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow.js space.
Thank you for your support and cooperation.
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.