deepkit / deepkit-framework

A new full-featured and high-performance TypeScript framework
https://deepkit.io/
MIT License
3.24k stars 123 forks source link

Framework Export named 'BrokerKeyValue' not found #574

Open gabdara opened 5 months ago

gabdara commented 5 months ago

Hi,

On the latest @deepkit/framework@1.0.1-alpha.153 I'm getting the following error when running the command server:start

SyntaxError: Export named 'BrokerKeyValue' not found in module '/.../node_modules/@deepkit/broker/dist/esm/index.js'.

Downgrading to @deepkit/framework@1.0.1-alpha.152 solves it.

marcj commented 5 months ago

Did you also update @deepkit/broker? Depending on your package manager, you have to do it manually. I prefer to update packages either via "npx update-by-scope @deepkit" or "yarn up '@deepkit/*'

gabdara commented 5 months ago

I didn't install @deepkit/broker in my app as I don't make use of it yet. I thought it will use it from the dependencies under @deepkit/framework since the documentation installation guide doesn't mention peer dependencies.

marcj commented 5 months ago

seems like you don't use npm and use something that doesn't handle peer dependencies properly

marcj commented 5 months ago

oh wait, we have wrong peerDependencies version for broker, which seems to be the issue here

gabdara commented 5 months ago

Thank you for looking into it!

seems like you don't use npm and use something that doesn't handle peer dependencies properly

I use bun