diff --git a/src/driver/connect.ts b/src/driver/connect.ts index 193f215..45efd25 100644 --- a/src/driver/connect.ts +++ b/src/driver/connect.ts @@ -74,7 +74,7 @@ function link(instance: React.Component, sources: Sources): Wr const isFromSource = sourcesValues.includes(createMethod) if (isFromSource) { const method = map.get(createMethod) - if (!method) throw Error('Method not found') + if (!method) throw new Error('Method not found') const runnable = applyMiddlewares(method, otherArgs) run(runnable) }