Need help using venia-ui and peregrine on a project with Vite bundler #4291
Unanswered
Javimtib92
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are trying to install
venia-ui
andperegrine
into a project that bundles usingvite
.The first thing I did is to wrap the app with the
Adapter
component to try out if it could work.We ran into problems trying to import the react components as they are defined in
js
files so we had to setup a loader to loadjs
files asjsx
. Then we encountered another problem with some imports. See the following image:The problem is that this imports are trying to import files that are named with extensions
ce.js
oree.js
and vite is not resolving those files.Am I trying to do something impossible? Are these packages only working with the custom webpack setup generated by the CLI create project command?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions