trytriplex / triplex

The visual IDE for the web.
https://triplex.dev
GNU General Public License v3.0
822 stars 28 forks source link

Cannot open any scenes #205

Closed dodds-cc closed 5 months ago

dodds-cc commented 5 months ago

First of all, great piece of software, I'm so glad I found it.

As of yesterday, I'm getting errors when I try to open or create a new project...

Failed to resolve import "styled-components" from "node_modules/react-use-measure/test/src/styles.tsx". Does the file exist?
    at formatError (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
    at TransformContext.error (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
    at normalizeUrl (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
    at async Promise.all (index 0)
    at async TransformContext.transform (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
    at async Object.transform (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
    at async loadAndTransform (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
    at async viteTransformMiddleware (file:///Applications/Triplex.app/Contents/Resources/app/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
[2024-06-04 09:11:10.617] [verbose]               [vite] connected.
[2024-06-04 09:11:20.520] [warn]                This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
[2024-06-04 09:11:20.522] [error]               timeout
[2024-06-04 09:11:20.528] [warn]                This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
[2024-06-04 09:11:20.528] [error]               timeout
[2024-06-04 09:13:21.039] [info]  (auto-update) Checking for update
[2024-06-04 09:13:22.629] [info]  (auto-update) Update for version 0.67.3 is not available (latest version: 0.67.3, downgrade is disallowed).
[2024-06-04 09:13:22.631] [debug] (auto-update) checkForUpdatesAndNotify called, downloadPromise is null
[2024-06-04 09:13:25.903] [info]  (main)        selected /Users/tomdodds/Workspace/Subsonic/DeerVerb/3dspace
[2024-06-04 09:13:26.034] [info]  (main)        forking
[2024-06-04 09:13:26.035] [info]  (fork)        starting prod
[2024-06-04 09:13:26.496] [info]  (project) start project /Users/tomdodds/Workspace/Subsonic/DeerVerb/3dspace
[2024-06-04 09:13:26.591] [info]  (fork)        ready
[2024-06-04 09:13:26.598] [info]  (main)        starting editor
[2024-06-04 09:13:27.348] [verbose]               [vite] connecting...
[2024-06-04 09:13:27.439] [verbose]               [vite] connected.
[2024-06-04 09:13:27.520] [error]               Uncaught SyntaxError: The requested module '/node_modules/.triplex/deps/@triplex_bridge_client.js?v=5152f073' does not provide an export named 'forwardKeydownEvents'
[2024-06-04 09:14:17.995] [verbose]               [vite] connecting...
[2024-06-04 09:14:17.997] [verbose]               [vite] connected.
[2024-06-04 09:14:18.060] [error]               Uncaught SyntaxError: The requested module '/node_modules/.triplex/deps/@triplex_bridge_client.js?v=5152f073' does not provide an export named 'forwardKeydownEvents'

Looks like the internal deps are not being pulled down correctly?

itsdouges commented 5 months ago

Hey mate 👋. Can you try deleting node_modules/.triplex from your project and then re-running? I have an inkling that's the main issue. Looks like there is a need to clear that cache out every new version just in case :think:.

Not being able to create a project is concerning 😬.

Apologies for the trouble! And thanks so much for the sponsorship 🙏.

itsdouges commented 5 months ago

Hey mate any luck?

itsdouges commented 5 months ago

I've put a patch in the next release that clears out the cache when a new version is released. Let me know if you have anymore problems.

https://github.com/try-triplex/triplex/releases/tag/v0.67.4