question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typings don't work?

See original GitHub issue

Glad to see we have TypeScript support now 😃

But the top-level imports don’t seem to work?

image

It’s the same for import useStoreon from 'storeon/preact'.

Note that import { Module, StoreonEvents } from 'storeon' works fine.

Using TypeScript 2.9.2, storeon 0.9.2.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
hadeebcommented, Aug 3, 2019

image

storeon exports commonjs modules and has no default export.

You can either enable SyntheticDefaultImports in tsconfig Or use import/require

import createStore = require('storeon');

Hope this helps.

0reactions
aicommented, Mar 8, 2020

In 1.0 we added ESM and in 2.0 we are planning to move to named exports https://github.com/storeon/storeon/commit/6d7770b01687706c8a8afbf83d53c40ed95c0609

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: Keyboard Won't Type - Driver Easy
Fixes for my keyboard won't type: · Restart your computer · Adjust your keyboard settings · Uninstall your keyboard driver · Update your...
Read more >
Keyboard Not Working? How to Fix Windows 10 Keyboard Not ...
How to Fix Your Keyboard Not Typing by Disabling Fast Startup. Fast Startup is an option that lets Windows 10 computers boot quickly....
Read more >
How to Fix It When a Keyboard Won't Type - Lifewire
Make sure you have the correct text field selected. Click directly in the text field where you want to type, then try typing...
Read more >
Typing Does Not Work on Windows 10 Interface
1. Press the Windows + C keys and click Settings. 2. Click Change computer settings. 3. Click Ease of Access. 4. Click Keyboard....
Read more >
5 simple fixes for a laptop keyboard that's not working | Asurion
How to fix a laptop keyboard that's not working · The driver. Your keyboard may be unresponsive because of a driver issue. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found