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 'match' of undefined #349

Closed
jackjackde opened this issue Jan 9, 2019 · 9 comments
Closed

Cannot read property 'match' of undefined #349

jackjackde opened this issue Jan 9, 2019 · 9 comments

Comments

@jackjackde
Copy link

jackjackde commented Jan 9, 2019

clean frontools install
nodejs: 10.15.0
npm: 6.5.0
frontools 1.6.0

on npm install installation breaks after "[email protected]"
log: error Cannot read property 'match' of undefined
from log file:

verbose stack TypeError: Cannot read property 'match' of undefined
1517 verbose stack     at tarballToVersion (/usr/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:87:20)
1517 verbose stack     at inflatableChild (/usr/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:99:22)
1517 verbose stack     at BB.each (/usr/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:55:12)
1517 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
1517 verbose stack     at Object.gotValue (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:155:18)
1517 verbose stack     at Object.gotAccum (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:144:25)
1517 verbose stack     at Object.tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
1517 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
1517 verbose stack     at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
1517 verbose stack     at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
1517 verbose stack     at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:694:18)
1517 verbose stack     at _drainQueueStep (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
1517 verbose stack     at _drainQueue (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
1517 verbose stack     at Async._drainQueues (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:147:5)
1517 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
1517 verbose stack     at runCallback (timers.js:705:18)

i found this issue: npm/npm#20954

@Igloczek
Copy link
Contributor

Igloczek commented Jan 9, 2019

Please use Yarn instead of NPM at least until I manage to fix this problem.

@jackjackde
Copy link
Author

i do and the installation runs fine. But now i have another problem and it's difficult to describe...

If i start a session from browser for the first time (before i run gulp dev or gulp styles) everything is fine, every external file is loading. After 'gulp dev | styles' magento load the "regular" page but not the js | img files from pub directory.

@Igloczek
Copy link
Contributor

Igloczek commented Jan 9, 2019

Without logs from console and browser, I cannot say more than "sorry for inconveniences" 😉

But if you have problems even with images, which are not processed by the Frontools at all, it's probably a problem with your M2 instance configuration.

@Igloczek
Copy link
Contributor

Igloczek commented Jan 11, 2019

@mageho Thanks for the report, but it's exactly the same as OP show in the first comment, so I removed yours. In the future, please just upvote the issue.

@SnowdogApps SnowdogApps deleted a comment from Amadeco Jan 11, 2019
@nghelo
Copy link

nghelo commented Feb 20, 2019

delete npm-shrinkwrap.json and try again with npm install

@dasiux
Copy link

dasiux commented Feb 21, 2019

delete npm-shrinkwrap.json and try again with npm install

this worked fine so far, no need for yarn.

@henkvalk
Copy link
Contributor

delete npm-shrinkwrap.json and try again with npm install

Thanks for the fix. This was solving my issue

@Igloczek
Copy link
Contributor

Fixed in v1.7.0

@vishwanath231
Copy link

thanks for the fix.

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

No branches or pull requests

6 participants