Comments (12)
Yes, but index.d.ts
sorry I misstyped
from playwright-ct.
I mean, when someone makes a Pull Request and it gets released 😅
from playwright-ct.
Published as 0.1.1
from playwright-ct.
Hey, does it fix itself if you add
{
"types": "./dist/index.d.mts"
}
to the package json in your node_modules, if so we are missing that field in our package. The new resolution mechanism for newer TS versions is included
from playwright-ct.
@JoviDeCroock I was checking the package.json for the node_modules>@preact>playwright-ct and that field is already inside. I tried adding "moduleResolution": "NodeNext"
in the ts.config and the error is no longer shown inside the test file import, but it is still appearing inside the playwright-ct.config.ts
and also there is like a warning saying that NodeNext is unstable.
from playwright-ct.
It's not their at the first-level, only in the export-map. Mind putting it at the base level as well?
from playwright-ct.
I’m sorry @JoviDeCroock I think I'm not following, do you mean adding
{
"types": "./dist/index.d.mts"
}
at the root level of my project's package.json
? or where exactly?
from playwright-ct.
Of the package json of our package @preact/playwright-ct
it seems to be missing from the latest release so just adding it above this line without nodeNext
from playwright-ct.
Like this?
"name": "@preact/playwright-ct",
"version": "0.0.2",
"description": "Playwright Component Testing for Preact",
"repository": "github:preact/playwright-ct",
"keywords": [
"Preact",
"Playwright",
"testing"
],
"author": "Marvin Hagemeister <[email protected]>",
"license": "MIT",
"types": "./dist/index.d.mts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./hooks": {
"types": "./dist/hooks.d.mts",
"default": "./dist/hooks.mjs"
}
},
from playwright-ct.
yes, that fixed it!, when is it gonna be available so I can update the package with that change?
from playwright-ct.
@JoviDeCroock Since you guys will add the fix for the types Issue in a next version, I'll mark this as resolved, but the problem will still present, I'll be looking forward to get this version as soon as it is available.
Thanks for helping
from playwright-ct.
I tried to create a PR with the change so you guys could check it but Unfortunately I couldn’t.
from playwright-ct.
Related Issues (4)
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 playwright-ct.