Skip to content

CDN build missing modulesย #245

Closed
Closed
@Shurlow

Description

@Shurlow

The current build hosted on cdnjs doesn't seem to have all the modules built correctly. I am getting this error when including whs in a script tag:

Uncaught TypeError: WHS.ElementModule is not a constructor
    at white.js:4

Are modules like WHS.ElementModule intended to be included in the core api?

I understand that the recommended usage is via npm + webpack (totally agree), but maybe a functional cdn build with a simple explanation in the gh readme & docs is appropriate?

Otherwise maybe just exclude support for the cdn and remove the link on the readme?

Version:
  • v2.x.x
  • v1.x.x
Issue type:
  • Bug
  • Proposal/Enhancement
  • Question
  • Discussion

Tested on:
Desktop
  • Chrome
  • Chrome Canary
  • Chrome dev-channel
  • Firefox
  • Opera
  • Microsoft IE
  • Microsoft Edge
Android
  • Chrome
  • Firefox
  • Opera
IOS
  • Chrome
  • Firefox
  • Opera

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