question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error Cannot read property 'BOTTOM_RIGHT' of undefined" after upgrade from 4.4.0 to 4.4.1

See original GitHub issue
TypeError: Cannot read property 'BOTTOM_RIGHT' of undefined
App.render
src/App.tsx:98
   95 | 	{/* container for the notification toasters
   96 | These are default values which can be change with react-toastify.toast() in components
   97 | */}
>  98 | 	<ToastContainer
   99 | 		position={ToastPosition.BOTTOM_RIGHT}
  100 | 		hideProgressBar={true}
  101 | 		newestOnTop={true}

my package.json

	"dependencies": {
		"@rebass/grid": "6.0.0-4",
		"@types/rebass": "^0.3.1",
		"@types/reduce-reducers": "^0.1.3",
		"ag-grid": "18.1.2",
		"ag-grid-react": "18.1.0",
		"antd": "3.10.5",
		"apollo-boost": "0.1.20",
		"apollo-client-preset": "1.0.8",
		"apollo-link-schema": "1.1.1",
		"apollo-link-state": "0.4.2",
		"axios": "0.18.0",
		"connected-react-router": "5.0.1",
		"font-awesome": "4.7.0",
		"graphql": "14.0.2",
		"graphql-tag": "2.10.0",
		"graphql-tools": "3.1.1",
		"grid-styled": "5.0.2",
		"history": "4.7.2",
		"qs": "6.5.2",
		"react": "16.6.1",
		"react-apollo": "2.2.4",
		"react-app-rewire-ts-jest": "1.0.17",
		"react-app-rewire-typescript-babel-preset": "3.0.0",
		"react-dom": "16.6.1",
		"react-dom-factories": "1.0.2",
		"react-grid-layout": "0.16.6",
		"react-icons": "3.2.2",
		"react-redux": "5.1.0",
		"react-router": "4.3.1",
		"react-router-dom": "4.3.1",
		"react-scripts": "1.1.5",
		"react-spinners": "0.4.7",
		"react-toastify": "4.4.1",
		"recharts": "1.3.5",
		"reduce-reducers": "0.4.3",
		"redux": "4.0.1",
		"redux-logger": "3.0.6",
		"redux-persist": "5.10.0",
		"redux-persist-transform-encrypt": "2.0.1",
		"redux-saga": "0.16.2",
		"redux-thunk": "2.3.0",
		"styled-components": "4",
		"waait": "1.0.2"
	},
	"devDependencies": {
		"@types/debug": "0.0.31",
		"@types/enzyme": "3.1.15",
		"@types/enzyme-adapter-react-16": "1.0.3",
		"@types/history": "4.7.2",
		"@types/jest": "23.3.9",
		"@types/node": "10.12.4",
		"@types/qs": "6.5.1",
		"@types/react": "16.7.1",
		"@types/react-dom": "16.0.9",
		"@types/react-grid-layout": "0.16.5",
		"@types/react-redux": "6.0.9",
		"@types/react-router": "4.4.1",
		"@types/react-router-dom": "^4.3.0",
		"@types/react-test-renderer": "16.0.3",
		"@types/recharts": "1.1.1",
		"@types/redux-logger": "3.0.6",
		"@types/redux-persist": "4.3.1",
		"@types/redux-saga": "0.10.5",
		"babel-core": "6.26.3",
		"babel-plugin-import": "1.11.0",
		"babel-preset-react-app": "3.1.2",
		"debug": "3.1.0",
		"enzyme": "3.7.0",
		"enzyme-adapter-react-16": "1.7.0",
		"fs-extra": "7.0.1",
		"jest-cli": "20.0.4",
		"jest-expect-message": "1.0.2",
		"jest-html-reporter": "2.4.2",
		"react-app-rewire-less": "2.1.3",
		"react-app-rewire-typescript": "2.0.2",
		"react-app-rewired": "1.6.2",
		"react-test-renderer": "16.6.1",
		"ts-jest": "23.0.1",
		"tslint": "5.11.0",
		"tslint-react": "3.6.0",
		"typescript": "3.1.6",
		"wait-for-expect": "1.0.1",
		"webpack-bundle-analyzer": "3.0.3",
		"webpackbar": "2.6.3",
		"why-did-you-update": "1.0.5"
	}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
abenhamdinecommented, Nov 11, 2018

I confirm 4.4.2 indeed fixed that issue, thx for the quick fix !

1reaction
abenhamdinecommented, Nov 10, 2018

I’ll remove the enum from the definition file and provide real constant for that

Sounds good.
As for now, I was able to avoid the issue by setting "skipLibCheck": true in tsconfig.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Cannot read property '0' of undefined after upgrade ...
I had the exact same error. In my case the issue was incorrect import paths. I moved one folder to a different path...
Read more >
Error Cannot read property 'replace' of undefined after upgrade
Using --webpack fixes the build, so its apparently an issue with the tsc option. Happens when updating from 6.11.2 to 6.11.3. Expected behavior....
Read more >
Changelog - Cypress Documentation
Cypress no longer throws the error "cannot read property split of undefined" in certain circumstances when application errors are thrown. Fixes #17378.
Read more >
6.14. Red Hat Virtualization 4.4 General Availability (ovirt-4.4.1)
The current release fixes this issue: It removes the validation and regenerates the lease information data when the lease Storage Domain ID is...
Read more >
oVirt 4.4.0 Release Notes
The oVirt Project is pleased to announce the availability of the 4.4.0 ... BZ 1816619 [RFE] Enable update of appliance from channels after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found