Comments (2)
I tried to publish Mini-Van to JSR. It seems that there isn't an easy way to do that. This is the error message that I got:
Check file:///Users/xintao/org/mini-van/src/mini-van.js
Check file:///Users/xintao/org/mini-van/src/van-plate.js
Check file:///Users/xintao/org/mini-van/src/shared.js
error: TS2304 [ERROR]: Cannot find name 'Element'.
type BrowserTags = Tags<Element, Text> & {
~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:46:25
TS2304 [ERROR]: Cannot find name 'Text'.
type BrowserTags = Tags<Element, Text> & {
~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:46:34
TS2304 [ERROR]: Cannot find name 'HTMLElementTagNameMap'.
[K in keyof HTMLElementTagNameMap]: TagFunc<Element, Text, HTMLElementTagNameMap[K]>
~~~~~~~~~~~~~~~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:47:15
TS2304 [ERROR]: Cannot find name 'Element'.
[K in keyof HTMLElementTagNameMap]: TagFunc<Element, Text, HTMLElementTagNameMap[K]>
~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:47:47
TS2304 [ERROR]: Cannot find name 'Text'.
[K in keyof HTMLElementTagNameMap]: TagFunc<Element, Text, HTMLElementTagNameMap[K]>
~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:47:56
TS2304 [ERROR]: Cannot find name 'HTMLElementTagNameMap'.
[K in keyof HTMLElementTagNameMap]: TagFunc<Element, Text, HTMLElementTagNameMap[K]>
~~~~~~~~~~~~~~~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:47:62
TS2304 [ERROR]: Cannot find name 'Element'.
export interface Van extends VanObj<Element, Text> {
~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:64:37
TS2304 [ERROR]: Cannot find name 'Text'.
export interface Van extends VanObj<Element, Text> {
~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:64:46
TS2304 [ERROR]: Cannot find name 'Element'.
readonly tags: BrowserTags & ((namespaceURI: string) => Tags<Element, Text>)
~~~~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:69:64
TS2304 [ERROR]: Cannot find name 'Text'.
readonly tags: BrowserTags & ((namespaceURI: string) => Tags<Element, Text>)
~~~~
at file:///Users/xintao/org/mini-van/src/mini-van.d.ts:69:73
Found 10 errors.
It looks like DOM types can't be used for packages published to JSR.
I love Deno, but to be honest I'm not really a big fan of keeping reinventing the wheel for marginal improvement.
I will revert the partial changes that I made. I can revisit the issue if an easy way to publish to JSR is discovered.
I know there is a good reason for the current names
mini-van-plate/van-plate
andmini-van-plate
however the names above could be more explanatory?
I didn't think too much while picking the name for NPM. I chose the name because this is the one that was available for me to use at that time. Later packages published to NPM follow the convention of vanjs-*
because names like that are always available to use. Once packages are published their names are really hard to change.
from van.
For naming it could be:
@vanjs/core
-> Client-Side@vanjs/core-lite
-> Client-Side without state and no Document@vanjs/ssr
-> Server-Side
I know there is a good reason for the current names mini-van-plate/van-plate
and mini-van-plate
however the names above could be more explanatory?
from van.
Related Issues (20)
- how to manually re-render? HOT 8
- Clear reactive array HOT 18
- Script children should not be escaped HOT 6
- Intersection observer HOT 11
- Can createDocumentFragment be used directly? HOT 2
- Smallest reactive library HOT 6
- A way to make VanJS even smaller HOT 2
- iOS usecase?
- Array type for properties values HOT 2
- A new version of the TodoList in Javascript with editable input fields
- vanjs-jsx Fragment missing HOT 6
- [vanjs-jsx] Add missing ./src/jsx-runtime.js HOT 3
- [vanjs-jsx] style property no more handled HOT 1
- Bad support on conditional rendering when return nulls HOT 4
- HTML Character Entity for " " not correctly loading rendering when using span() tag. HOT 2
- Element not rendering properly HOT 5
- Vanx.Reactive and Vanx.List doesn't work with objects with Uint8Array (and some other objects too?) as children HOT 2
- select({ value: "..." }) does not select default item? HOT 3
- Bug when deriving state inside an object HOT 12
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 van.