Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliancataldo/satori-html-bun
https://github.com/juliancataldo/satori-html-bun
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliancataldo/satori-html-bun
- Owner: JulianCataldo
- Created: 2024-01-15T14:02:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-16T19:35:47.000Z (10 months ago)
- Last Synced: 2024-10-15T01:11:38.194Z (29 days ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# satori-html-bun
```bash
bun install
```---
```bash
bun run start-tsx
```Yields:
```
{
type: 'div',
props: {
style: {
display: 'flex',
flexDirection: 'column',
width: '100%',
height: '100%'
},
children: [ [Object] ]
}
}
```---
```bash
bun run start-bun
```Yields:
```
^
TypeError: undefined is not an object (evaluating 't.type')
at S (/Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/selector.js:1:5712)
at /Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/selector.js:1:6194
at /Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/selector.js:1:4783
at /Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/selector.js:1:4896
at visit (/Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/index.js:1:2539)
at visit (/Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/index.js:1:2643)
at C (/Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/selector.js:1:4861)
at /Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/ultrahtml/dist/transformers/inline.js:2:514
at html (/Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/node_modules/satori-html/dist/index.js:68:5)
at /Volumes/n_1024a-Projects/Repositories/__repros/satori-html-bun/index.ts:3:16
```# Investigations
```
bun test-2.ts
```Narrowing to this culprit:
```ts
import inlineCSS from "ultrahtml/transformers/inline";
const inliner = inlineCSS({ useObjectSyntax: true });
```