Skip to content
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

Cannot find module #21

Open
ToktogonovA opened this issue Nov 18, 2024 · 0 comments
Open

Cannot find module #21

ToktogonovA opened this issue Nov 18, 2024 · 0 comments

Comments

@ToktogonovA
Copy link

ToktogonovA commented Nov 18, 2024

I have a TypeScript file that I'm processing using importFromStringSync.

The file contains an import of an interface and an enum from different folders.

The interface import works fine, but the enum import fails with an error stating that the module cannot be found.

Why does this happen?

Here is my file:

import { IConfig } from "../types";
import { PathEnum } from "../../router/config";

export const CONFIG: IConfig = {
  hiddenRoute: [PathEnum.Test],
};

Error: Cannot find module '../../router/config'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant