-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[w/ Inertia] Error: Cannot access "./util.inspect.custom" in client code. #102
Labels
Comments
sebsobseb
changed the title
Error: Cannot access "./util.inspect.custom" in client code.
[w/ Inertia] Error: Cannot access "./util.inspect.custom" in client code.
Jul 21, 2022
Found a similar issue in the Vite issues, but instead of Someone from the Vite team closed the issue and said: |
7 tasks
✅ The issue disappeared when I switched from Yarn (3.2.1) to NPM 🤷♂️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
When running
yarn dev
i see:🚨 But in my browser I see a white page with a error in console:
✅ running
yarn build
works as expected and gives no errors.vite.config.js
app.js
🔍 After some debugging I discovered that this is an issue caused by object-inspect (used by qs, which is used by Inertia).
I get the same error if I simply import
object-inspect
in myapp.js
...Steps To Reproduce:
yarn add object-inspect
ornpm install object-inspect
import objectInspect from 'object-inspect';
inresources/js/app.js
http://localhost
https://stackblitz.com/edit/vite-whdqvh?file=main.js
(still trying to make this reproduction URL work, but seems like it's difficult to make the plugin work in a sandbox env, any help would be appreciated 🙏)
The text was updated successfully, but these errors were encountered: