Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Sep 16, 2021
1 parent ecc63a4 commit d8151e3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Expand Up @@ -245,7 +245,7 @@ const rewriteReferencesVisitor: Visitor<RewriteReferencesVisitorState> = {
if (importData) {
if (isInType(path)) {
throw path.buildCodeFrameError(
`Cannot transform the imported ${localName} binding since it's used in a type annotation. ` +
`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. ` +
`Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`,
);
}
Expand Down
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-flow"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-flow"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-flow"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-typescript"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-typescript"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-typescript"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}
Expand Up @@ -2,5 +2,5 @@
"externalHelpers": true,
"sourceType": "module",
"plugins": ["transform-modules-commonjs", "syntax-typescript"],
"throws": "Cannot transform the imported A binding since it's used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
"throws": "Cannot transform the imported binding \"A\" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow."
}

0 comments on commit d8151e3

Please sign in to comment.