-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix support for @tsconfig/ember 3.0.0 error TS7016 #613
Comments
Further context -- I believe this is specifically related to using diff --git a/node_modules/ember-cli-page-object/package.json b/node_modules/ember-cli-page-object/package.json
index cddb866..e92c917 100644
--- a/node_modules/ember-cli-page-object/package.json
+++ b/node_modules/ember-cli-page-object/package.json
@@ -25,7 +25,10 @@
"license": "MIT",
"author": "Santiago Ferreira",
"exports": {
- ".": "./dist/index.js",
+ ".": {
+ "import": "./dist/index.js",
+ "types": "./types.d.ts"
+ },
"./*": "./dist/*",
"./addon-main.js": "./addon-main.js"
}, |
Hey, thanks guys 👋 It feels reasonable for me to provide a few test scenarios to check the build against a couple of major typescript versions. Probably via ember-try scenarios... I'll appreciate a PR! Otherwise, I'll try to take a look on a fix this weekend. |
When I update "exports": {
".": {
"import": "./dist/index.js",
"types": "./types.d.ts"
},
"./*": "./dist/*",
"./addon-main.js": "./addon-main.js"
}, ... then
However the following works for me with both "exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./types.d.ts"
},
"./*": {
"import": "./dist/*",
"require": "./dist/*",
"types": "./types.d.ts"
},
"./addon-main.js": {
"import": "./addon-main.js",
"require": "./addon-main.js",
"types": "./types.d.ts"
}
}, I was able to make some progress adding a new {
name: 'ember-release-typescript-5',
npm: {
devDependencies: {
'@ember/string': '^3.1.1',
'ember-cli-typescript': '^5.2.1',
'ember-resolver': '^10.1.1',
'ember-source': await getChannelURL('release'),
'typescript': '^5.1.6',
},
},
env: {
EMBER_OPTIONAL_FEATURES: JSON.stringify({
'jquery-integration': false,
}),
},
} |
As I said, I'm pretty sure this has nothing to do with the typescript version, but rather using So you might be able to get a failing test by updating the test app to extend |
I've opened #614 to address this. Please let me know if you have any feedback, happy to iterate on this. Thanks @bendemboski for the tips! |
Just published the fix https://github.com/san650/ember-cli-page-object/releases/tag/v2.1.0. Thanks everyone! |
Trying to use Ember CLI Page Objects 2.0.0 with TypeScript 5.1.6 throws the following error:
This seems to be related to this issue.
Updating the page objects
package.json
locally (as suggested in the issue above) does appear to address the issue for me, but I'm not sure about any side effects or backwards-compatibility issues the change might cause.The text was updated successfully, but these errors were encountered: