box-ui-elements icon indicating copy to clipboard operation
box-ui-elements copied to clipboard

Testing npm package locally

Open LookYgor opened this issue 2 years ago • 2 comments

Note: if your issue involves previewing files, please report the issue here.

Environment: node 14

  • Elements version:
  • Desktop
  • OS :Windows 11
  • Browser chrome
  • Version 104.0.5112.81 (Official Build) (64-bit)

Steps to reproduce the problem: yarn start:npm yarn link

than in the parent project yarn link box-ui-elements yarn start

What went wrong? (Screenshots, console logs, or HAR files can be helpful here) image

Additional context It works just fine when I run/debug using the examples page but I am unable to link the package locally.

LookYgor avatar Aug 16 '22 04:08 LookYgor

We think its a webpack issue where it will attempt to transpile node_modules/box-ui-element while linked which would throw that exception. You need to exclude node_modules/box-ui-elements from webpack (doc)

greg-in-a-box avatar Aug 17 '22 20:08 greg-in-a-box

I have added node_modules/box-ui-elements from webpack but I am still getting the same error. Repo

LookYgor avatar Aug 18 '22 00:08 LookYgor