Skip to content

bug: Stencil build generates local import #4609

@mlechler

Description

@mlechler

Prerequisites

Stencil Version

4.0.1

Current Behavior

When I'm running a stencil build I get the following import in my docs.d.ts
import { ComponentCompilerEventComplexType, ComponentCompilerMethodComplexType, ComponentCompilerPropertyComplexType, ComponentCompilerReferencedType } from './stencil-private';

Is this correct? The file is not found, cause it is obviously not there...

Expected Behavior

Import from the package, e.g. @stencil/core/internal

System Info

System: node 18.16.1
    Platform: darwin (21.6.0)
   CPU Model: Apple M1 Pro (10 cpus)
    Compiler: node_modules/@stencil/core/compiler/stencil.js
       Build: 1687953951
     Stencil: 4.0.1 ⛹
  TypeScript: 5.0.4
      Rollup: 2.42.3
      Parse5: 7.1.2
      Sizzle: 2.42.3
      Terser: 5.18.1

Steps to Reproduce

Run following command
stencil build

Code Reproduction URL

https://github.com/mlechler/stencil-build-bug

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions