You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a dependency named graphql in node_modules.
I also have a src/graphql folder in my project.
In this folder, I have a Typescript file that imports from the graphql dependency:
import { GraphQLError } from 'graphql';
This is mistaken as a path reference by tspath, and it gets transpiled as:
const graphql_1 = require("../graphql/index.js");
Of course, the line can be skipped with // tspath: skip-file but it would be nice if tspath recognized that this is a reference to a dependency, and not to a folder. It would be as simple as collecting node_modules subfolders and giving them precedence over folder names.
The text was updated successfully, but these errors were encountered:
There is a dependency named
graphql
innode_modules
.I also have a
src/graphql
folder in my project.In this folder, I have a Typescript file that imports from the
graphql
dependency:This is mistaken as a path reference by
tspath
, and it gets transpiled as:Of course, the line can be skipped with
// tspath: skip-file
but it would be nice iftspath
recognized that this is a reference to a dependency, and not to a folder. It would be as simple as collectingnode_modules
subfolders and giving them precedence over folder names.The text was updated successfully, but these errors were encountered: