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

Cannot read property 'assertVersion' of undefined #263

Open
trukhilio opened this issue Jan 21, 2020 · 5 comments
Open

Cannot read property 'assertVersion' of undefined #263

trukhilio opened this issue Jan 21, 2020 · 5 comments

Comments

@trukhilio
Copy link

trukhilio commented Jan 21, 2020

Hi! When I'm trying to build the ios bundle in Travis I'm getting this error:

Errors prevented bundling:
While processing files with omega:meteor-desktop-bundler (for target web.cordova):
/Users/travis/build/myproject/node_modules/@babel/helper-plugin-utils/lib/index.js:10:14: Cannot read property 'assertVersion' of undefined
at /Users/travis/build/myproject/node_modules/@babel/helper-plugin-utils/lib/index.js:10:14
at packages/meteor-desktop-bundler/bundler.js:816:28
at Function.time (/tools/tool-env/profile.js:305:10)
at MeteorDesktopBundler.processFilesForTarget (packages/meteor-desktop-bundler/bundler.js:499:17)

meteor-desktop version is 2.2.4
meteor 1.8.1

P.S. works with the 2.0.0

@wojtkowiak
Copy link
Owner

Does it only appear when building IOS? What command do you use to built it?
Can you run it with METEOR_DESKTOP_DEBUG=1 and paste the results?
Can you paste your package.json deps?

@gunnartorfis
Copy link

I'm encountering the same issue - I tried using meteor-desktop 2.0.0 & 2.2.5 and meteor version 1.8.3 & 1.9.

I get the issue when running (both on iOS and Android)
First started a mobile server (meteor --mobile-server=127.0.0.1:3000), then
meteor run ios --settings ../settings/settings-development.json --port 3002 --mobile-server 192.168.1.218

I'm curious why meteor-desktop is doing anything at all when I'm trying to run the mobile app?

@gunnartorfis
Copy link

gunnartorfis commented Feb 14, 2020

This is happening for me as well in my CI/CD on Github Actions - deploying only the web part of the application. This happens when running "meteor deploy".

Here is the action's output:

Preparing to deploy your app...
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Node#moveTo was deprecated. Use Container#append.
[meteor-desktop] creating a production build
[meteor-desktop] calculated .desktop hash version is 028b921c351fe768ba2172cfcfe433cd071b11c0_prod

Errors prevented deploying:
While processing files with omega:meteor-desktop-bundler (for target
web.cordova):

/home/runner/work/timatal/timatal/node_modules/@babel/helper-plugin-utils/lib/index.js:10:14:
Cannot read property 'assertVersion' of undefined
at
/home/runner/work/timatal/timatal/node_modules/@babel/helper-plugin-utils/lib/index.js:10:14
at packages/meteor-desktop-bundler/bundler.js:816:28
at Function.time
(/home/runner/.meteor/packages/meteor-tool/.1.9.0.1mtsmz6.qnno++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:284:12)
at MeteorDesktopBundler.processFilesForTarget
(packages/meteor-desktop-bundler/bundler.js:499:17)

dependencies:

    "@noonahq/kennitalajs": "^1.0.5",
    "@types/react": "^16.9.18",
    "@types/react-dom": "^16.9.5",
    "ClientStorage": "^2.1.3",
    "analytics-node": "^3.3.0",
    "axios": "^0.19.2",
    "bcrypt": "^3.0.7",
    "bunyan": "^1.8.12",
    "chart.js": "^2.7.2",
    "date-fns": "^2.6.0",
    "dotenv": "^8.1.0",
    "electron-log": "^3.0.9",
    "file-saver": "^2.0.2",
    "flatpickr": "^4.5.2",
    "graphql": "^14.5.8",
    "graphql-tag": "^2.10.1",
    "html2canvas": "^1.0.0-rc.5",
    "jquery": "^3.4.1",
    "jspdf": "^1.5.3",
    "meteor-node-stubs": "^0.4.1",
    "particlesjs": "^2.2.2",
    "pdfkit": "^0.10.0",
    "prop-types": "^15.7.2",
    "react": "^16.9.0",
    "react-barcode-reader": "0.0.1",
    "react-color": "^2.17.3",
    "react-date-range": "^1.0.0-beta2",
    "react-dates": "^21.7.0",
    "react-device-detect": "^1.11.14",
    "react-dom": "^16.9.0",
    "react-dropzone": "^10.1.10",
    "react-flatpickr": "^3.10.0",
    "react-icons": "^3.8.0",
    "react-native-web": "^0.11.7",
    "react-select": "^3.0.8",
    "react-svg": "^11.0.7",
    "react-to-print": "^2.5.1",
    "redux": "^4.0.4",
    "rrule": "^2.6.2",
    "selectize": "^0.12.6",
    "simpl-schema": "^1.5.3",
    "tippy.js": "^5.1.4",
    "webfontloader": "^1.6.28",
    "xml-js": "^1.6.11"

devDependencies:

    "@meteorjs/eslint-config-meteor": "^1.0.5",
    "@types/file-saver": "^2.0.1",
    "@typescript-eslint/eslint-plugin": "^2.17.0",
    "@typescript-eslint/parser": "^2.17.0",
    "autoprefixer": "^6.3.1",
    "babel-eslint": "^10.0.3",
    "electron": "2.0.10",
    "electron-builder": "21.2.0",
    "electron-packager": "14.0.4",
    "eslint": "^6.3.0",
    "eslint-config-airbnb": "^18.0.1",
    "eslint-config-airbnb-base": "^14.0.0",
    "eslint-import-resolver-meteor": "^0.4.0",
    "eslint-plugin-import": "^2.20.0",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-meteor": "^6.0.0",
    "eslint-plugin-react": "^7.18.0",
    "eslint-plugin-react-hooks": "^2.0.1",
    "meteor-desktop": "^2.2.5",
    "prettier": "1.19.1",
    "typescript": "^3.7.5"

@abduljanjua
Copy link

abduljanjua commented May 21, 2020

any fix for this issue? facing the same issue when updated to 2.2.5
Works fine on 2.0.0

@dorian-coygo
Copy link

dorian-coygo commented May 29, 2020

in case this helps other people:

make sure in .meteor/packages

omega:meteor-desktop-bundler
omega:meteor-desktop-watcher

match the version of meteor-desktop

for example

omega:meteor-desktop-watcher@=2.2.5
omega:meteor-desktop-bundler@=2.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants