infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsErrorPage: An error related to IdsErrorPage's popup gets displayed even whole enterprise.js is imported in html #2792

Open mrtipsytony opened 3 weeks ago

mrtipsytony commented 3 weeks ago

Describe the bug Currently trying to render IdsErrorPage in html file and I noticed there's an error in console. See image below. image

To Reproduce

Steps to reproduce the behavior:

  1. Update index.html in enterprise-wc-examples/typescript-ids-wc project. Import the enterprise-wc.js, render the markup, Here's the code
    
    <!DOCTYPE html>
    <html lang="en">
TypeScript application using Ids Web Components



3. Start the project using npm run start
4. Launch localhost:8080 in any browser
5. Open Dev Tools and check console tab and see the console error. 

**Expected behavior**
There should be no error

**Version**
<!-- You can find this by inspecting the document html tag or sohoxi.js script header -->
- ids-enterprise: latest version

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Platform**
 - Infor Application/Team Name: [e.g. Infor XYZ, Infor ABC]
 - Device: (if applicable) [e.g. iPhone 6 or Samsung Galaxy S6]
 - OS Version: [e.g. Windows 10 or iOS 8]
 - Browser Name: [e.g. chrome, safari, stock browser]
 - Browser Version: [e.g. 22, 66.0.3359.181 (Official Build) (64-bit)]

**Additional context**
There's actually a workaround fix, if I import the IdsText script the error gets resolved. 
`<script src="node_modules/ids-enterprise-wc/components/ids-text/ids-text.js" type="module"></script>` but I was expecting when we import `ids-enterprise-wc/enterprise-wc.js`, the IdsText component should be included. 
tmcconechy commented 2 weeks ago

https://inforwiki.atlassian.net/browse/IDS-4857