When running tinacms build --datalayer-port 8000 && next build i recieve
> tinacms build --datalayer-port 8000 && next build
Starting Tina build
Error: No native build was found for platform=linux arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.19.1
loaded from: /tmp/1713199946233
at load.resolve.load.path (/tmp/1713199946233/database.build.js:54106:13)
at load (/tmp/1713199946233/database.build.js:54069:34)
at node_modules/.pnpm/classic-level@1.4.1/node_modules/classic-level/binding.js (/tmp/1713199946233/database.build.js:54257:48)
at __require (/tmp/1713199946233/database.build.js:9:50)
at node_modules/.pnpm/classic-level@1.4.1/node_modules/classic-level/index.js (/tmp/1713199946233/database.build.js:54390:19)
at __require (/tmp/1713199946233/database.build.js:9:50)
at Object.<anonymous> (/tmp/1713199946233/database.build.js:109507:36)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
So i debugged these build files, and find out that TinaCMS build creates external directory at /tmp + Date.now(), so node-gyp-build cannot reach native build files.
To reproduce you can use default tina cloud starter with Tina Self hosted setup and use classic-level as database adapter
Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!
Versions: https://pastebin.com/skUyH6x2
Framework: NextJS 13.5.4 , app & pages router
database.ts file: https://pastebin.com/7aBSWACr
Problem i'm struggling with:
When running tinacms build --datalayer-port 8000 && next build i recieve
So i debugged these build files, and find out that TinaCMS build creates external directory at /tmp + Date.now(), so node-gyp-build cannot reach native build files.
To reproduce you can use default tina cloud starter with Tina Self hosted setup and use classic-level as database adapter
Reproduction
https://github.com/alexcupertme/tina-classic-level-bug
Steps to reproduce
System Info
Validations