Skip to content

bug: esbuild gives WARNING for stencil: The glob pattern did not match any files [empty-glob] #30947

@trakhimenok

Description

@trakhimenok

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When building an NX Angular project am getting a warning:

> nx build app

▲ [WARNING] The glob pattern import("./**/*.entry.js*") did not match any files [empty-glob]

    node_modules/.pnpm/@stencil+core@4.38.0/node_modules/@stencil/core/internal/client/index.js:169:2:
      169 │   `./${bundleId}.entry.js${BUILD5.hotModuleReplacement && hmrVers...
          ╵   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Relevant Stencil issue: stenciljs/core#5427

According to Stencil team this has been resolved on Stencil side and needs small adjustment in Ionic:

@trakhimenok it's already in-place 😄 - ionic just need to add the enableImportInjection option to their config here

This really isn't Stencil's issue - unfortunately I can't transfer it to ionic

Expected Behavior

No WARNINGs when building with ESBUILD

Steps to Reproduce

  1. Create an Ionic angular project that uses esbuild (or clone https://github.com/sneat-co/sneat-apps)
  2. build the app
  3. see the warning

Code Reproduction URL

https://github.com/sneat-co/sneat-apps

Ionic Info

onic info
[WARN] You are not in an Ionic project directory. Project context may be missing.

Ionic:

Ionic CLI : 7.2.1

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v24.1.0
npm : 11.3.0
OS : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions