Comments (7)
OK, I got it working now locally after cloning it again. But the server.ts still has an error: ```
app.get("/public/*", async (ctx) => {
return await ctx.env.ASSETS.fetch(ctx.req.raw);
Error is that Fetch does not exist on type string.
from sonicjs.
Are you able to access http://0.0.0.0:8788/status when running locally? If so, what is the output?
Did you create your app with npx create-sonicjs-app
?
from sonicjs.
No, we couldn't use npx create-sonicjs-app. Just kept throwing errors. Honestly, I think the idea with this repo is brilliant here and is exactly what I envisioned as the best type of CRM infrastructure that can scale, and is not expensive. I just really could just not get it set up as a package. Just didn't work at all. So I've had to just go folder by folder and try to get stuff working. I've used Workers for a few years, so quite familiar with the platform.
from sonicjs.
Sorry to hear that. If the npx script isn't working for you, you should be able to:
- Clone the repo
npm install
- rename
/wrangler.example.toml
to/wrangler.toml
- fill in the values of wrangler.toml per the instructions included in the same file as comments.
npm run dev
Please post any errors that you are getting with this process. I'd like to get them fixed.
Please also share OS, node version, etc so that I can attempt to replicate.
from sonicjs.
Here is what your status page should look like. Note that ASSETS
are included in the env from Hono js.
![Screenshot 2023-11-08 at 7 17 16 AM](https://private-user-images.githubusercontent.com/4350219/281451740-8628a6a1-c197-48e2-9db3-d0a3fe9fa9ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTgzMjQsIm5iZiI6MTcyMTQ5ODAyNCwicGF0aCI6Ii80MzUwMjE5LzI4MTQ1MTc0MC04NjI4YTZhMS1jMTk3LTQ4ZTItOWRiMy1kMGEzZmU5ZmE5Y2EucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjBUMTc1MzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Njk1NDI1MTQyMWFhNDhmZjk1YTBjYjVjMDljMmM1MmQ0MTM1MWZhYzJmYWM0MmY0MjA2N2I4ZDEwNmZhZWI1ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BoKeMu03qzu173GgYfVSHZt9BVsvJk4YEchgd0iWUag)
from sonicjs.
I'll try to do everything again. But, also, I still get this error, raised by someone else in another issue: "Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:readline/promises"
from sonicjs.
What OS & node version on you using?
from sonicjs.
Related Issues (20)
- Installation Process not clear HOT 2
- Content Editor? HOT 14
- How to Secure Admin endpoint? HOT 1
- Await updateD1Data to avoid race conditions HOT 2
- Installation Error: SonicJs Error: Error: D1_ERROR: no such table: users HOT 4
- Installation Error HOT 8
- Fix Bootstrap.js integration issue, breaking the form.io forms
- Admin UI/UX Auth Enhancements
- Integrate with Webstudio.is POC HOT 2
- Add unit tests to cover lucia (authentication - login/registration/tokens/access controls/etc) HOT 1
- Allow schema files to be edited in the browser
- Update Environment Variables Documentation HOT 1
- Support images transformation HOT 5
- Fast? HOT 6
- Migrate D1 in production adjustment
- Convert tests to vitest
- Add support for Cloudflare images
- Hello World example in routing is broken HOT 1
- categoriesToPost example is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonicjs.