Hello
I am trying RedwoodJS for the first time (amazed by the team’s work BTW!), but facing some really weird behavior and I cannot understand what is going on.
It looks like wizardry to me
So, for your information, I am running Arch linux with i3wm and alacritty as my terminal emulator with the z shell.
I try to follow the quick start and run the following commands:
nvm use v18.18.2 # to enforce node v18
yarn create redwood-app my-redwood-project --typescript
yarn install
Until there, everything went fine.
But when I run yarn rw dev
, my computer looks frozen, my mouse cursor becomes a crosshair and can draw selection areas when I click, move then release.
Any other command appears frozen, like I said (the only other thing I can do - besides drawing selection areas - is to change to another TTY session with CTRL-ALT-F2 for instance).
If I make multiple selections with this mouse “tool” (like a dozen time), I can finally use my computer again.
At that point, I can see that my redwood’s project API server as started to listen to 8911 and is available at http://localhost:8911/, but the WEB server did not start.
Here is what my console output looks like:
$ yarn rw dev
yarn run v1.22.4
$ /home/boi/repos/bowys/node_modules/.bin/rw dev
$ /home/boi/repos/bowys/node_modules/.bin/cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --quiet --watch /home/boi/repos/bowys/redwood.toml --exec 'yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter'
$ /home/boi/repos/bowys/node_modules/.bin/cross-env NODE_ENV=development rw-vite-dev
$ /home/boi/repos/bowys/node_modules/.bin/rw-gen-watch
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: `vite' @ error/import.c/ImportImageCommand/1289.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
$ /home/boi/repos/bowys/node_modules/.bin/nodemon --quiet --watch /home/boi/repos/bowys/redwood.toml --exec 'yarn rw-api-server-watch --port 8911 --debug-port 18911 | rw-log-formatter'
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9354.
web | import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
web | import: unable to read X window image '': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5068.
web | import: `@redwoodjs/project-config' @ error/import.c/ImportImageCommand/1289.
web | /home/boi/repos/bowys/web/node_modules/.bin/rw-vite-dev: line 6: syntax error near unexpected token `('
web | /home/boi/repos/bowys/web/node_modules/.bin/rw-vite-dev: line 6: `const rwPaths = projectConfig.getPaths()'
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
web | yarn cross-env NODE_ENV=development rw-vite-dev exited with code 2
$ /home/boi/repos/bowys/node_modules/.bin/rw-api-server-watch --port 8911 --debug-port 18911
api | Building... Took 318 ms
api | Debugger listening on ws://127.0.0.1:18911/6d8e87ce-acfa-42cd-a1f3-0fc09ee30c46
api | For help, see: https://nodejs.org/en/docs/inspector
gen | Generating full TypeScript definitions and GraphQL schemas
gen | Done.
api | Starting API Server...
api | Loading server config from /home/boi/repos/bowys/api/server.config.js
api |
api | Importing Server Functions...
api | 20:43:34 🐛 GraphiQL and Introspection Config
api | 🗒 Custom
api | {
api | "defaultAllowedOperations": [
api | "query",
api | "mutation"
api | ],
api | "defaultError": "Something went wrong.",
api | "disableIntrospection": false,
api | "graphiQLEndpoint": "/graphql"
api | }
api | /graphql 407 ms
api | ...Done importing in 408 ms
api | Took 442 ms
api | API listening on http://localhost:8911/
api | GraphQL endpoint at /graphql
api | 20:43:34 🌲 Server listening at http://[::]:8911
Please help me to troubleshoot this, I never saw something as strange as this
Best regards,
Bruno