You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am importing a typescript function from a local folder. When I choose
Quokka | Start On Current File,
it works fine, but only once. If I then start making changes to the main.ts file it tries to automatically rerun, but fails with an 'Emit Skipped' error.
I have ts-node installed, and ts-paths, and I've tried it with and without alias-quokka-plugin.
Sample code
// Imports from installed modules run fine on every keystrokeimport{sha256}from'js-sha256';constxs=sha256('here we go');// changing the text here makes xs change instantlyxs// But this stuff only runs the first time I explicitly run quokka. Then it gives 'Emit Skipped' error.import{to2dp2}from'./common/ts/utils2';constss=to2dp2(3.81239415926);ss
The first time it runs fine. On subsequent keystrokes it gives this:
Quokka 'quokkatest.ts' (node: v10.15.1, TypeScript: v3.3.3333, plugins: alias-quokka-plugin)
common\ts\utils2.ts: Emit skipped
at getOutput ./node_modules/ts-node/src/index.ts:337
at Object.compile ./node_modules/ts-node/src/index.ts:367
at Module.m._compile ./node_modules/ts-node/src/index.ts:413
at Module._extensions..js internal/modules/cjs/loader.js:700
at Object.require.extensions.(anonymous function) [as .ts] ./node_modules/ts-node/src/index.ts:416
at Module.load internal/modules/cjs/loader.js:599
at tryModuleLoad internal/modules/cjs/loader.js:538
at Module._load internal/modules/cjs/loader.js:530
at Function.Module._load.rest [as _load] ./node_modules/alias-quokka-plugin/src/main.js:34
at require internal/modules/cjs/helpers.js:22
at Object.<anonymous> quokkatest.ts:10
at Module._compile internal/modules/cjs/loader.js:689
8f03973c6b88d93330eaf35c1e18baa6261c6b74a23c2b07d958ba0cca2eeec0
at xs quokkatest.ts:6:0
Code editor version
Visual Studio Code v1.32.2
OS name and version
Windows 10Pro build 17134
The text was updated successfully, but these errors were encountered:
Ok, after much fiddling, I think I've solved the problem. My tsconfig contained:
"noEmitOnError": true
When I removed this line, the problem went away.
So I guess my much more minor question is whether it's possible to just turn off noEmitOnError for quokka, without affecting my existing tsconfig. And I didn't see any mention of noEmitOnError in the docs, so perhaps a comment about this could be added there?
@thunderkid, it's definitely possible to override your tsconfig for quokka. You can read more about how to do this in our docs. In short, you'll need to override the settings you don't want for Quokka in your Quokka configuration (you can read more in the docs about how to configure Quokka).
Issue description or question
I am importing a typescript function from a local folder. When I choose
Quokka | Start On Current File,
it works fine, but only once. If I then start making changes to the
main.ts
file it tries to automatically rerun, but fails with an 'Emit Skipped' error.I have
ts-node
installed, andts-paths
, and I've tried it with and withoutalias-quokka-plugin
.Sample code
I'm importing from this file (
utils2.ts
):This is my
.quokka
file:Quokka.js Console Output
The first time it runs fine. On subsequent keystrokes it gives this:
Code editor version
Visual Studio Code v1.32.2
OS name and version
Windows 10Pro build 17134
The text was updated successfully, but these errors were encountered: