question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`semantic error TS2339: Property 'name' does not exist on type 'User'` with rpt2 but not `tsc` when using Vite -- can't repro

See original GitHub issue

What happens and why it is wrong

When defining class property in the constructor for example:

class User {
  constructor(private name: string) {}
}

Result => build fails with following error: semantic error TS2339: Property 'name' does not exist on type 'User'.

When doing the same thing but defining the property as a class member

class User {
  name: string

  constructor(name: string) {}
}

Result => build pass.

When defining as class property in the constructor and trying to access

class User {
  constructor(private name: string) {
    this.name
  }
}

Result => build fails with the same error.

For all cases, running tsc -b works great.

I am having trouble believing it never happened to anyone as this package is popular. Couldn’t find any open issue about this. The parsed ts-config seems fine in the logs.

Environment

MacOS Monterey VS-Code Node 17.3.1

Versions
 npmPackages:
    rollup-plugin-typescript2: 0.31.2 => 0.31.2 
    typescript: ^4.4.4 => 4.5.5 

rollup.config.js

I don’t use one

tsconfig.json

`tsconfig.json`:
{
  "compilerOptions": {
    "target": "es5",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "declaration": true,
    "moduleResolution": "node",
    "inlineSourceMap": true,
    "downlevelIteration": true
  },
  "exclude": ["./__tests__", "dist", "**/__mocks__/**"],
  "include": ["src"]
}

plugin output with verbosity 3 - failure case

plugin output with verbosity 3:
$ rm -rf dist && yarn vite build
$ /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.bin/vite build
vite v2.8.3 building for production...
rpt2: built-in options overrides: {
    "noEmitHelpers": false,
    "importHelpers": true,
    "noResolve": false,
    "noEmit": false,
    "inlineSourceMap": false,
    "outDir": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/placeholder",
    "moduleResolution": 2,
    "allowNonTsExtensions": true,
    "module": 5
}
rpt2: parsed tsconfig: {
    "options": {
        "target": 1,
        "allowSyntheticDefaultImports": true,
        "esModuleInterop": true,
        "declaration": true,
        "moduleResolution": 2,
        "inlineSourceMap": false,
        "downlevelIteration": true,
        "configFilePath": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/tsconfig.json",
        "noEmitHelpers": false,
        "importHelpers": true,
        "noResolve": false,
        "noEmit": false,
        "outDir": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/placeholder",
        "allowNonTsExtensions": true,
        "module": 5
    },
    "fileNames": [
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts"
    ],
    "typeAcquisition": {
        "enable": false,
        "include": [],
        "exclude": []
    },
    "raw": {
        "compilerOptions": {
            "target": "es5",
            "allowSyntheticDefaultImports": true,
            "esModuleInterop": true,
            "declaration": true,
            "moduleResolution": "node",
            "inlineSourceMap": true,
            "downlevelIteration": true
        },
        "exclude": [
            "./__tests__",
            "dist",
            "**/__mocks__/**"
        ],
        "include": [
            "src"
        ],
        "compileOnSave": false
    },
    "errors": [],
    "wildcardDirectories": {
        "/users/yarinsasson/documents/work/user-management-service/sdk/src": 1
    },
    "compileOnSave": false
}
rpt2: typescript version: 4.5.5
rpt2: tslib version: 2.3.1
rpt2: rollup version: 2.67.2
rpt2: rollup-plugin-typescript2 version: 0.31.2
rpt2: plugin options:
{
    "verbosity": 3,
    "check": true,
    "clean": false,
    "cacheRoot": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2",
    "include": [
        "*.ts+(|x)",
        "**/*.ts+(|x)"
    ],
    "exclude": [
        "*.d.ts",
        "**/*.d.ts"
    ],
    "abortOnError": true,
    "rollupCommonJSResolveHack": false,
    "useTsconfigDeclarationDir": false,
    "tsconfigOverride": {},
    "transformers": [],
    "tsconfigDefaults": {},
    "objectHashIgnoreUnknownHack": false,
    "cwd": "/Users/yarinsasson/Documents/Work/user-management-service/sdk",
    "typescript": "version 4.5.5"
}
rpt2: rollup config:
{
    "input": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts",
    "context": "globalThis",
    "preserveEntrySignatures": "strict",
    "plugins": [
        {
            "name": "alias"
        },
        {
            "name": "vite:modulepreload-polyfill"
        },
        {
            "name": "vite:resolve"
        },
        {
            "name": "vite:html-inline-proxy"
        },
        {
            "name": "vite:css"
        },
        {
            "name": "vite:esbuild"
        },
        {
            "name": "vite:json"
        },
        {
            "name": "vite:wasm"
        },
        {
            "name": "vite:worker"
        },
        {
            "name": "vite:worker-import-meta-url"
        },
        {
            "name": "vite:asset"
        },
        {
            "name": "sourcemaps"
        },
        {
            "name": "rpt2"
        },
        {
            "name": "vite:define"
        },
        {
            "name": "vite:css-post"
        },
        {
            "name": "vite:watch-package-data"
        },
        {
            "name": "vite:build-html"
        },
        {
            "name": "commonjs"
        },
        {
            "name": "vite:data-uri"
        },
        {
            "name": "rollup-plugin-dynamic-import-variables"
        },
        {
            "name": "vite:asset-import-meta-url"
        },
        {
            "name": "vite:build-import-analysis"
        },
        {
            "name": "vite:esbuild-transpile"
        },
        {
            "name": "vite:terser"
        },
        {
            "name": "vite:reporter"
        },
        {
            "name": "vite:load-fallback"
        }
    ]
}
rpt2: tsconfig path: /Users/yarinsasson/Documents/Work/user-management-service/sdk/tsconfig.json
rpt2: included:
[
    "*.ts+(|x)",
    "**/*.ts+(|x)"
]
rpt2: excluded:
[
    "*.d.ts",
    "**/*.d.ts"
]
rpt2: Ambient types:
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/@types/estree/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/@types/semver/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/faker/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/js-yaml/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json-schema/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json-stable-stringify/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json5/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/jsonwebtoken/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/minimatch/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/minimist/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/node/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/normalize-package-data/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/parse-json/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/websocket/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/ws/index.d.ts
rpt2: transpiling '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts'
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/code/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/syntacticDiagnostics/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/semanticDiagnostics/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2: generated declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts'
transforming (1) src/index.tsrpt2: transpiling '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts'
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/code/cache/4926919e7c8797b34661afb3926fead78e96e050'
rpt2:     cache miss
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/syntacticDiagnostics/cache/4926919e7c8797b34661afb3926fead78e96e050'
rpt2:     cache miss
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/semanticDiagnostics/cache/4926919e7c8797b34661afb3926fead78e96e050'
rpt2:     cache miss
✓ 1 modules transformed.
[rpt2] /Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts(3,10): semantic error TS2339: Property 'options' does not exist on type 'AuthClient'.
file: /Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts
error during build:
Error: /Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts(3,10): semantic error TS2339: Property 'options' does not exist on type 'AuthClient'.
    at error (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup/dist/shared/rollup.js:160:30)
    at throwPluginError (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup/dist/shared/rollup.js:21831:12)
    at Object.error (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup/dist/shared/rollup.js:22556:20)
    at Object.error (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup/dist/shared/rollup.js:22008:42)
    at RollupContext.error (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:17311:30)
    at /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:25144:23
    at arrayEach (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:585:11)
    at Function.forEach (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:9465:14)
    at printDiagnostics (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:25117:14)
    at Object.transform (/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:30271:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

plugin output with verbosity 3 - success case

plugin output with verbosity 3:
command.
➜  sdk git:(develop) ✗ yarn build
yarn run v1.22.17
$ rm -rf dist && yarn vite build
$ /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.bin/vite build
vite v2.8.3 building for production...
rpt2: built-in options overrides: {
    "noEmitHelpers": false,
    "importHelpers": true,
    "noResolve": false,
    "noEmit": false,
    "inlineSourceMap": false,
    "outDir": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/placeholder",
    "moduleResolution": 2,
    "allowNonTsExtensions": true,
    "module": 5
}
rpt2: parsed tsconfig: {
    "options": {
        "target": 1,
        "allowSyntheticDefaultImports": true,
        "esModuleInterop": true,
        "declaration": true,
        "moduleResolution": 2,
        "inlineSourceMap": false,
        "downlevelIteration": true,
        "configFilePath": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/tsconfig.json",
        "noEmitHelpers": false,
        "importHelpers": true,
        "noResolve": false,
        "noEmit": false,
        "outDir": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/placeholder",
        "allowNonTsExtensions": true,
        "module": 5
    },
    "fileNames": [
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts",
        "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts"
    ],
    "typeAcquisition": {
        "enable": false,
        "include": [],
        "exclude": []
    },
    "raw": {
        "compilerOptions": {
            "target": "es5",
            "allowSyntheticDefaultImports": true,
            "esModuleInterop": true,
            "declaration": true,
            "moduleResolution": "node",
            "inlineSourceMap": true,
            "downlevelIteration": true
        },
        "exclude": [
            "./__tests__",
            "dist",
            "**/__mocks__/**"
        ],
        "include": [
            "src"
        ],
        "compileOnSave": false
    },
    "errors": [],
    "wildcardDirectories": {
        "/users/yarinsasson/documents/work/user-management-service/sdk/src": 1
    },
    "compileOnSave": false
}
rpt2: typescript version: 4.5.5
rpt2: tslib version: 2.3.1
rpt2: rollup version: 2.67.2
rpt2: rollup-plugin-typescript2 version: 0.31.2
rpt2: plugin options:
{
    "verbosity": 3,
    "check": true,
    "clean": false,
    "cacheRoot": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2",
    "include": [
        "*.ts+(|x)",
        "**/*.ts+(|x)"
    ],
    "exclude": [
        "*.d.ts",
        "**/*.d.ts"
    ],
    "abortOnError": true,
    "rollupCommonJSResolveHack": false,
    "useTsconfigDeclarationDir": false,
    "tsconfigOverride": {},
    "transformers": [],
    "tsconfigDefaults": {},
    "objectHashIgnoreUnknownHack": false,
    "cwd": "/Users/yarinsasson/Documents/Work/user-management-service/sdk",
    "typescript": "version 4.5.5"
}
rpt2: rollup config:
{
    "input": "/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts",
    "context": "globalThis",
    "preserveEntrySignatures": "strict",
    "plugins": [
        {
            "name": "alias"
        },
        {
            "name": "vite:modulepreload-polyfill"
        },
        {
            "name": "vite:resolve"
        },
        {
            "name": "vite:html-inline-proxy"
        },
        {
            "name": "vite:css"
        },
        {
            "name": "vite:esbuild"
        },
        {
            "name": "vite:json"
        },
        {
            "name": "vite:wasm"
        },
        {
            "name": "vite:worker"
        },
        {
            "name": "vite:worker-import-meta-url"
        },
        {
            "name": "vite:asset"
        },
        {
            "name": "sourcemaps"
        },
        {
            "name": "rpt2"
        },
        {
            "name": "vite:define"
        },
        {
            "name": "vite:css-post"
        },
        {
            "name": "vite:watch-package-data"
        },
        {
            "name": "vite:build-html"
        },
        {
            "name": "commonjs"
        },
        {
            "name": "vite:data-uri"
        },
        {
            "name": "rollup-plugin-dynamic-import-variables"
        },
        {
            "name": "vite:asset-import-meta-url"
        },
        {
            "name": "vite:build-import-analysis"
        },
        {
            "name": "vite:esbuild-transpile"
        },
        {
            "name": "vite:terser"
        },
        {
            "name": "vite:reporter"
        },
        {
            "name": "vite:load-fallback"
        }
    ]
}
rpt2: tsconfig path: /Users/yarinsasson/Documents/Work/user-management-service/sdk/tsconfig.json
rpt2: included:
[
    "*.ts+(|x)",
    "**/*.ts+(|x)"
]
rpt2: excluded:
[
    "*.d.ts",
    "**/*.d.ts"
]
rpt2: Ambient types:
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/@types/estree/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/@types/semver/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/faker/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/js-yaml/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json-schema/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json-stable-stringify/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/json5/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/jsonwebtoken/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/minimatch/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/minimist/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/node/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/normalize-package-data/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/parse-json/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/websocket/index.d.ts
rpt2:     /Users/yarinsasson/Documents/Work/user-management-service/node_modules/@types/ws/index.d.ts
rpt2: transpiling '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts'
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/code/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/syntacticDiagnostics/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/semanticDiagnostics/cache/8661eed392c11e612e9472818fb33610261775b5'
rpt2:     cache hit
rpt2: generated declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts'
transforming (1) src/index.tsrpt2: transpiling '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts'
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/code/cache/65f0e23b922100607ae070f3b9ae38c383a98f98'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/syntacticDiagnostics/cache/65f0e23b922100607ae070f3b9ae38c383a98f98'
rpt2:     cache hit
rpt2:     cache: '/Users/yarinsasson/Documents/Work/user-management-service/sdk/node_modules/.cache/rollup-plugin-typescript2/rpt2_78d7eb8a74b0b6f25c11de8eecad86647833265f/semanticDiagnostics/cache/65f0e23b922100607ae070f3b9ae38c383a98f98'
rpt2:     cache hit
rpt2: generated declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts'
✓ 2 modules transformed.
rendering chunks (1)...rpt2: generating target 1
rpt2: rolling caches
rpt2: generating missed declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts'
rpt2: generating missed declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts' to 'index.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts' to 'authClient.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts' to 'storage.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts' to 'types.d.ts'
dist/index.d.ts        0.01 KiB
dist/authClient.d.ts   0.11 KiB
dist/storage.d.ts      0.06 KiB
dist/types.d.ts        0.11 KiB
dist/sdk.umd.js        0.30 KiB / gzip: 0.20 KiB
rendering chunks (1)...rpt2: generating target 2
rpt2: rolling caches
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts' to 'index.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts' to 'authClient.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts' to 'storage.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts' to 'types.d.ts'
dist/index.d.ts        0.01 KiB
dist/authClient.d.ts   0.11 KiB
dist/storage.d.ts      0.06 KiB
dist/types.d.ts        0.11 KiB
dist/sdk.cjs.js        0.22 KiB / gzip: 0.17 KiB
rendering chunks (1)...rpt2: generating target 3
rpt2: rolling caches
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/index.ts' to 'index.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/authClient.ts' to 'authClient.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/storage.ts' to 'storage.d.ts'
rpt2: emitting declarations for '/Users/yarinsasson/Documents/Work/user-management-service/sdk/src/types.ts' to 'types.d.ts'
dist/index.d.ts        0.01 KiB
dist/authClient.d.ts   0.11 KiB
dist/storage.d.ts      0.06 KiB
dist/types.d.ts        0.11 KiB
dist/sdk.es.js         0.33 KiB / gzip: 0.19 KiB

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ezolenkocommented, Mar 5, 2022

That supposed to work I think – rpt2 uses this syntax itself in host.ts for example, and it builds itself with an older version of itself…

1reaction
yarinsacommented, Feb 22, 2022

It seems like I am gonna have to set the check flag to false. I have tried to run the build without cache. I also tried running tsc -b. tsc doesn’t emit any problems (and static tslint). I also supplied my instance of ‘typescript’. None of the above seems to work.

I think it’s a major feature since failing the build if the type checking failed is a core feature of TS. I have no problem tracking down the issue and contributing, but I need some guidance @ezolenko

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript Error TS2339: Property does not exist on type ...
You are trying to access the attribute on the array of LogRepair that is why the error message includes the square brackets after...
Read more >
rollup-plugin-typescript2 - Bountysource
rpt2 throw type error but tsc command was fine, any body help? [rpt2] queue.ts(1,5): semantic error TS7034: Variable 'EventQueue' implicitly has type 'any[]'...
Read more >
cannot find module 'fs' or its corresponding type declarations.
I can use it locally but when I publish it to npm, I cannot use it in any angular ... error TS2339: Property...
Read more >
error TS2339: Property 'X' does not exist on type '{}' : r/Angular2
I'm trying to access these values safely - the values are always static and contain the same type of data. When I run...
Read more >
Ezolenko Rollup-Plugin-Typescript2 Issues - IssueHint
`semantic error TS2339: Property 'name' does not exist on type 'User'` with rpt2 but not `tsc` when using Vite -- can't repro, closed,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found