8000 bug: setMode is not a function in v4.33.1 (works in v4.32.0) · Issue #6276 · stenciljs/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug: setMode is not a function in v4.33.1 (works in v4.32.0) #6276
Closed
@kozi

Description

@kozi

Prerequisites

Stencil Version

4.33.1

Current Behavior

The code described here https://stenciljs.com/docs/styling#style-modes does not work in v4.33.1 in v4.32.0 everything is fine.

import { setMode } from '@stencil/core';

const defaultMode = 'md'; // Default to Material Design
setMode((el) => el.getAttribute('mode') || defaultMode);

Image

Expected Behavior

The code should work like in v4.32.0.

System Info

System: node 22.16.0
    Platform: windows (10.0.2***)
   CPU Model: AMD Ryzen 7 PRO ***
    Compiler: C:\...\node_modules\@stencil\core\compiler\stencil.js
       Build: 174898***
     Stencil: 4.33.1
  TypeScript: 5.5.4
      Rollup: 4.34.9
      Parse5: 7.2.1
      jQuery: 4.0.0-pre
      Terser: 5.37.0

Steps to Reproduce

Just use the code snippet from above.

Code Reproduction URL

https://github.com/stenciljs/

Additional Information

Reprodution URL should not be mandatory.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0