-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
import.meta.url
error in .mts files
#49842
import.meta.url
error in .mts files
#49842
Comments
You did not set |
@Josh-Cena |
Looks like a playground bug. You have to select Screen.Recording.2022-07-10.at.10.43.19.mov |
Confirmed this works fine from actual tsc; it does appear to just be the website |
getting the same error with minimal typescript config: {
"compilerOptions": {
"module": "NodeNext",
"target": "es5",
"noEmit": true,
"types": ["cypress"]
},
"extends": "@tsconfig/node16/tsconfig.json",
"include": ["vite.config.ts", "cypress.config.ts"]
} |
I am seeing this issue with these settings:
I'm on TypeScript 4.7.4 |
I'm facing the same issue in VSCode with following settings:
Following error messages are displayed by VSCode in a file with
TypeScript version: 4.7.4 |
Same for |
Can confirm 👍 |
@navya9singh I'm using the just released typescript v4.8.4 and still face this issue. I also don't see how a fix inside the ts website's source should fix an actual typescript issue. I'd vote to reopen this ticket. |
I'm also running into this issue with typescript 4.9.4. compiler options include: "compilerOptions": {
"strict": true,
"target": "ES2021",
"module": "Node16", |
I'm also experiencing this in VSCode, even though Edit: Figured out a fix! {
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler" |
Bug Report
🔎 Search Terms
import
,imoprt.meta
,nodenext
🕗 Version & Regression Information
ECMA Script modules in Node.JS
⏯ Playground Link
4.5.5
- playground4.7.4
(both .ts and .mts filex) - playground💻 Code
🙁 Actual behavior
🙂 Expected behavior
It compiles
The text was updated successfully, but these errors were encountered: