Skip to content

Unable to resolve "zod/v4-mini" in react-native project #4470

@ChristSei

Description

@ChristSei

I use template of react-native project from https://github.com/infinitered/ignite.
I've modified the tsconfig such that the LSP can recognize import zod/v4-mini. However, building doesn't work

The same happens in anything that's not just "zod"

the following is the modified tsconfig.json
{ "compilerOptions": { "allowJs": false, "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "jsx": "react-native", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "sourceMap": true, "target": "es2020", "lib": [ "esnext", "dom" ], "skipLibCheck": true, "resolveJsonModule": true, "baseUrl": ".", "paths": { "@/*": ["./app/*"], "assets/*": ["./assets/*"] }, "typeRoots": [ "./node_modules/@types", "./types" ], }, "extends": "expo/tsconfig.base", "ts-node": { "compilerOptions": { "module": "NodeNext" } }, "include": [ "**/*.ts", "**/*.tsx" ], "exclude": [ "node_modules", "test/**/*" ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions