Skip to content

bug: Rollup: Missing Export since version 4.37.0 #6526

@jcesarmobile

Description

@jcesarmobile

Prerequisites

Stencil Version

4.37.0 and newer

Current Behavior

the @stencil/core version was updated in this example app from 4.23.0 to 4.40.0 and it no longer builds (npm run build).

Downgrading to 4.36.3 or older fixes the issue, using 4.37.0 or newer causes the same issue.

The error is

Rollup: Missing Export
           @stencil/core/internal/app-globals (2:7): "default" is not exported by "src/global/app.ts", imported by
           "@stencil/core/internal/app-globals". 1: import ionicCoreGlobalScript from
           'app-icon/example/node_modules/@ionic/co... 2: import
           appGlobalScript from 'app-icon/example/src/global/app.ts'; ^ 3:
           export const globalScripts = () => { 4: return Promise.all([

Expected Behavior

npm run build command to keep working as in older versions

System Info

Steps to Reproduce

fork https://github.com/capacitor-community/app-icon
run:

  • npm install
  • npm run build
  • cd example
  • npm install
  • npm run build
    It will fail to build

downgrade to 4.36.3 or older and see that it builds again

Code Reproduction URL

https://github.com/capacitor-community/app-icon

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within StencilHas WorkaroundThis PR or Issue has a work around detailed within it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions