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

Error: Cannot find module [Tsconfig paths] #156

Open
andrewslock opened this issue Nov 11, 2024 · 0 comments
Open

Error: Cannot find module [Tsconfig paths] #156

andrewslock opened this issue Nov 11, 2024 · 0 comments

Comments

@andrewslock
Copy link

Here's the contents of my tsconfig.json:

{
    "compilerOptions": {
        "target": "ES2020",
        "outDir": "dist",
        "module": "commonjs",
        "declaration": true,
        "esModuleInterop": true,
        "forceConsistentCasingInFileNames": true,
        "strict": true,
        "skipLibCheck": true,
        "paths": {
            "@wrappers/Pool": ["./wrappers/Pool/Pool"],
            "@wrappers/Pool/*": ["./wrappers/Pool/*"],
            "@wrappers/Proxy": ["./wrappers/Proxy/Proxy"],
            "@wrappers/Proxy/*": ["./wrappers/Proxy/*"]
        }
    }
}

I made a script that has the following imports:

import { NetworkProvider } from '@ton/blueprint';
import { Address } from '@ton/core';
import { Pool } from '@wrappers/Pool';

but when trying to run the script, it gives the error:
Error: Cannot find module '@wrappers/Pool'

Replacing import { Pool } from '@wrappers/Pool'; with import { Pool } from '../wrappers/Pool/Pool'; helps but I want to use tsconfig paths.

Does blueprint not support Typescript in full or am I missing something here?

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