Closed stdavis closed 2 years ago
Hey @stdavis are you only seeing that error in codesandbox? I believe it's a codesandbox issue. I'm not able to repro your error with 4.24.4
or 4.24.5
on a local build with Vite or React.
This has to do with the codesandbox environment. The default uses parcel, even though you have a vite project. I'm guessing imported from a repo maybe? Or used the default and added vite.
Parcel doesn't work with our API yet, they have a branch that does, but it's not released yet.
Here's a vite sandbox with 4.24.4 that's working as expected. https://codesandbox.io/s/arcgis-vite-testing-qpz1xv?file=/src/main.tsx It uses Solid instead of React, but has a node environment for the sandbox.
Ah. OK. I was getting a different error locally. I ran into this issue when trying to build a repro. I'll try to get a code sandbox with the same error that I'm getting locally...
Scott, if you are able to repro locally, pls let us know.
Describe the bug When I attempt to import the
symbolUtils
module, I get the following error message in the browser:Framework and build tools
To Reproduce https://codesandbox.io/s/symbol-utils-import-error-hlx3u7?file=/src/App.jsx
Set the
@arcgis/core
package version to4.23.7
to see the problem go away. This seems to only affect4.24.x
.Expected behavior I expected to be able to successfully import and use the module without error messages.
Screenshots
Browser (check https://whatismybrowser.com/)
What's your OS? (check https://whatsmyos.com):
API version (check your console)
4.24.4
(I've also triednext
)Additional context None that I can think of. Thanks for the great library! I'm hoping that my old friend @odoe may be able to help me out.