Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor 3: TypeError: Cannot read properties of undefined (reading ‘format’) #13071

Closed
harry-73 opened this issue Mar 24, 2024 · 6 comments
Closed
Assignees
Labels
Meteor 3 relates to Meteor 3 Project:Mobile
Milestone

Comments

@harry-73
Copy link

Hi,

I am running:

Meteor 3 beta6
vite-bundler 2.0.0 beta.12
meteor-vite 1.10.2
I am trying to have the meteor create --vue myproject running with Cordova.

When I run: meteor run android-device, the application is lauchned but on server side, I have this issue:

BUILD SUCCESSFUL in 3s
52 actionable tasks: 7 executed, 45 up-to-date
Checking Java JDK and Android SDK versions   /
ANDROID_HOME=/home/xxx/Android/Sdk (recommended setting)
ANDROID_SDK_ROOT=/home/xxx/Android/Sdk (DEPRECATED)
Using Android SDK: /home/xxx/Android/Sdk   \
=> Started app on Android Device.             
node:events:496                               
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read properties of undefined (reading 'format')
    at logFromAndroidLogcatLine (/tools/cordova/run-targets.js:203:14)
    at /tools/cordova/run-targets.js:144:26
    at Transform.transform._transform (/home/xxx/.meteor/packages/meteor-tool/.3.0.0-beta.6.6skf6b.j9av++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/utils/tools/utils/eachline.ts:22:20)
    at Transform._write (node:internal/streams/transform:171:8)
    at doWrite (node:internal/streams/writable:590:12)
    at clearBuffer (node:internal/streams/writable:773:7)
    at onwrite (node:internal/streams/writable:644:7)
    at node:internal/streams/transform:191:7
    at Transform.transform._transform (/home/xxx/.meteor/packages/meteor-tool/.3.0.0-beta.6.6skf6b.j9av++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/utils/tools/utils/eachline.ts:27:5)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on DuplexWrapper instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at errorOrDestroy (node:internal/streams/destroy:238:7)
    at DuplexWrapper.onerror (node:internal/streams/readable:1024:9)
    at DuplexWrapper.emit (node:events:518:28)
    at Transform.<anonymous> (/home/xxx/.meteor/packages/meteor-tool/.3.0.0-beta.6.6skf6b.j9av++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/multipipe/index.js:62:55)
    at Transform.emit (node:events:530:35)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

The following repo reproduces the issue:

https://github.com/harry-73/meteor3-cordova-vite

@Grubba27 Grubba27 added Project:Mobile Meteor 3 relates to Meteor 3 labels Mar 25, 2024
@StorytellerCZ StorytellerCZ added this to the Release 3.0 milestone Apr 4, 2024
@denihs
Copy link
Contributor

denihs commented Apr 23, 2024

@nachocodoner may you have a look at this one?

@nachocodoner
Copy link
Member

Sure. We already have a report on this and is planned for the next RC.

@nachocodoner
Copy link
Member

@harry-73: That exact issue mentioned here was fixed on 3.0-rc.1 and in this PR, #13117.

I upgraded to 3.0-rc.2 on the repository you provided and indeed the issue you mentioned is fixed.

Though, I get another problem that seems related with meteor-vite though, which I am not so familiar. Could you double check it since you may be know what is missing? Maybe we should redirect this issue on meteor-vite end.

image

@harry-73
Copy link
Author

@nachocodoner i think you must delete the .meteor/local folder and run again meteor run.

Though, I get another problem that seems related with meteor-vite though, which I am not so familiar. Could you double check it since you may be know what is missing? Maybe we should redirect this issue on meteor-vite end.

image

@harry-73
Copy link
Author

@harry-73: That exact issue mentioned here was fixed on 3.0-rc.1 and in this PR, #13117.

I upgraded to 3.0-rc.2 on the repository you provided and indeed the issue you mentioned is fixed.

By the way, i confirm that is is fixed.

@nachocodoner
Copy link
Member

@nachocodoner i think you must delete the .meteor/local folder and run again meteor run.

Tryied that actually. Not sure why it didn't work on my end. Anyway, glad to see this fixed. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meteor 3 relates to Meteor 3 Project:Mobile
Projects
None yet
Development

No branches or pull requests

5 participants