Skip to content

How to fix "TypeError: Cannot set properties of undefined (setting 'adapter') at new WebGLAdapter" with vite dev mode? #9644

Answered by danloiterton
danloiterton asked this question in Q&A
Discussion options

You must be logged in to vote

In case anyone stumbles across this post...

I managed to track down a previous version of the codebase that would run in vite dev mode. Finally, I isolated the change which caused this error. It was changing this line from:

import { GeoJsonLayer } from 'deck.gl';

to

import { GeoJsonLayer } from '@deck.gl/layers';

which introduces the issue, although not immediately. I think it was re-installing dependencies after making this change, which uncovers the error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danloiterton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant