Skip to content

Zenstack VSCode plugin import from a NPM package leads to Cannot find model file error #1626

Closed
@Tsimopak

Description

@Tsimopak

Zenstack plugin import from a npm package leads to Cannot find model file (although it does work when trying to do npx zenstack generate)
Plugin version: v2.3.0

An easy way to reproduce in case you need a npm package:
npm install @dptickets2/common

then in schema.zmodel file:

import '@dptickets2/common/models/outbox'

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")}

The issue is quite annoying because right now in vscode, i have an error indication that reflects on my whole repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions