Error on App start - Cannot read property 'prototype' of undefined
See original GitHub issueIm building
next.js` app.
And till yesterday everything work fine,
but today i updated 2 packages:
aws-amplify to 1.1.1
aws-amplify-react to 2.0.2
And from this moment i cannot start the app, i mean i receive an error in console:
{ TypeError: Cannot read property ‘prototype’ of undefined at Object.<anonymous> (…/…/…/src/vendor/dom-utils/matches.ts:5:32) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (…/…/…/src/vendor/dom-utils/closest.ts:5:0) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) sourceMapsApplied: true }
TypeError: Cannot read property ‘prototype’ of undefined at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/matches.js:6:31) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/closest.js:6:17) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) TypeError: Cannot read property ‘prototype’ of undefined at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/matches.js:6:31) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/closest.js:6:17) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18)
TypeError: Cannot read property ‘prototype’ of undefined at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/matches.js:6:31) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/closest.js:6:17) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18)
TypeError: Cannot read property ‘prototype’ of undefined at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/matches.js:6:31) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/eugenealitz/projects/proposalis-aws/node_modules/@aws-amplify/analytics/lib/vendor/dom-utils/closest.js:6:17) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18)
Tried to rollback this packages, also removing /node_modules
folder at all with no success
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top GitHub Comments
same issue on running
gatsby develop
downgrading just only @aws-amplify/analytics to 1.0.9 with yarn resolutions directive:solved for me the issue
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.