opencomponents / oc

OpenComponents, serverless in the front-end world for painless micro-frontends delivery
https://opencomponents.github.io/
MIT License
1.43k stars 122 forks source link

Pacakage subpath ./runtime not defined #1370

Closed e-camp closed 3 months ago

e-camp commented 3 months ago

Who is the bug affecting?

Anyone wanting to test a component/building without modifying package exports

What is affected by this bug?

Cannot test component

When does this occur?

When testing a component

an error happened while packaging /../hello-world: Package subpath './runtime' is not defined by "exports" in /../hello-world/node_modules/vite/package.json imported from /../hello-world/node_modules/oc-vite/dist/node/index.js

Where on the platform does it happen?

CLI

How do we replicate the issue?

npm install oc -g oc init hello-world oc dev . 3030

Expected behavior (i.e. solution)

test component should launch

What version of OC, Node.js and OS are you using?

Tried on most current( v0.49.55 ) OC both Windows and OSX

Other Comments

ricardo-devis-agullo commented 3 months ago

Hi, this should be fixed now, although remember that the proper steps would be

npm install oc -g oc init hello-world cd hello-world nom install cd .. oc dev . 3030

e-camp commented 3 months ago

@ricardo-devis-agullo thank you!