The rapid prototyping playground for JavaScript and TypeScript by the maker of Wallaby.js
Questions tagged [quokka.js]
21 questions
4
votes
1 answer
How to make Quokka.js Untitled file to be ignored by Eslint?
I have a JS project with strict ESLint rules and "eslint.run": "onType" setting. I would like to ignore new Quokka.js Untitled editors, which are just a playground and I do not want to bother with clean syntax there. Is there any way how to disable…

xmedeko
- 7,336
- 6
- 55
- 85
4
votes
1 answer
Getting error (importSource cannot be set when runtime is classic) when running Quokka.js with CRA and Emotion using css prop
I'm trying to run Quokka (enterprise) on a javascript file that has a JSX pragma comment
/** @jsxImportSource @emotion/react */
at the top of the file and I am getting the error:
SyntaxError: ./src/components/LoadingButton.js: importSource cannot be…

Michael Miller
- 51
- 1
- 7
3
votes
0 answers
Quokka.js(Wallaby.js) is unable to find jquery: $ is not defined
I have a small js project which runs without an issue. I wanted to try out Quokka.js(Wallaby.js) and see how it goes.
When I have enabled Quokka in vscode, it showed an error for $ is not defined for
$.ajaxSetup({ async: true, type: "GET" });
Is…

Alex D
- 703
- 2
- 7
- 23
2
votes
0 answers
my quokka vs code extension is not working
it shows the following in the output :
Quokka 'js.js' (node: v13.14.0, plugins: jsdom-quokka-plugin)
Unexpected token '?' at Object.compileFunction
vm.js:344
I was trying to run the extension and to get the desired…

satvir singh
- 21
- 1
2
votes
1 answer
Why Quokka not showed [...Array]?
I have problem, that Quokka not showed result for this line:
[...Array(max - min + 1).keys()].map(i => i + min);
Below screenshot:
What is wrong, and how I can fix it?

mxcdh
- 805
- 3
- 10
- 20
2
votes
1 answer
How to make Quokka.js recognize local modules
I'm looking for a clear way to either require
const MyModel = require("../../models/MyModel");
or import
import MyModel from "../../models/MyModel";
local modules in a way that Quokka understands in ES6. Both approaches compile and do not throw…

Joseph
- 431
- 1
- 4
- 15
2
votes
1 answer
Atom Quokka plugin error: Unexpected token import when importing a module written with ES6 -
I am trying to use the wonderful Quokka package by WallabyJS https://github.com/wallabyjs/atom-quokka.
I am trying to import an ES6 module but keep getting an error in the Quokka console:
Unexpected token import at createScript vm.js:56
I have…

Neil
- 2,802
- 8
- 34
- 49
1
vote
0 answers
How to fix require() of ES Module /dir/node_modules/@angular/core/fesm2015/core.mjs not supported
On VsCode, I included Quokka.js extension. I tried running it on a typescript file and received the following error:
require() of ES Module /project/node_modules/@angular/core/fesm2015/core.mjs not supported.
Instead change the require of…

Philip Mutua
- 6,016
- 12
- 41
- 84
1
vote
1 answer
quokka with angular in Intellij tsconfig.json not found
I have angular 8 project with typescript and jest for running tests. I am trying to configure quokka to run in IntelliJ.
I installed quokka plugin in IntelliJ with empty .quokka.json, I don't understand why example in quokka configuration is…

d-man
- 57,473
- 85
- 212
- 296
1
vote
2 answers
Getting `Cannot find module 'jsdom-quokka-plugin'` in WebStorm
I am getting following error, when running quokka plugin in WebStorm. How to resolve it?
Quokka #1 (node: v6.9.5, plugins: jsdom-quokka-plugin)
Cannot find module 'jsdom-quokka-plugin'`
I can reinstall WebStorm but it does not help.

Shishir Arora
- 5,521
- 4
- 30
- 35
1
vote
1 answer
Quokka in VSCode through WSL's Node possible?
Quokka in VSCode trough WSL's Node possible?
When I link to bash.exe, though I don't know what to link too, it gives me:
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
…

coldasice
- 69
- 1
- 6
0
votes
0 answers
Use Quokka with Vite and NodeJS 19?
I am trying to use the Quokka VSCode extension in a vite app and I keep getting the following error.
Quokka PRO 'App.jsx' (node: v19.6.0) Only URLs with a
scheme in: file and data are supported by the default ESM loader. On
Windows,…

user3331344
- 728
- 8
- 23
0
votes
0 answers
how can i fix it SyntaxError in Quokka.js
environment: node:16.17.0, react, vite
This is my first time to create new repo with Quokka.js,
I just try to simply console test String, and get this error
my error: scrren shot

Michael Luo
- 13
- 4
0
votes
1 answer
Quokka won't start on VSCode, not sure how to fix my node
Quokka is throwing the errors "spawn node ENOENT", "Can not start node.js(node), make sure your system has node.js installed", and "You may use the "node" setting to configure the location of node."
I'm new to VSCode and Quokka and have no clue how…

csans
- 1
- 2
0
votes
1 answer
Quokka.js not found in vscode
I'm trying to install Quokka.js in vscode, but when I search for it, nothing appears.
I went to the vscode web page of the extension and copied :
ext install WallabyJs.quokka-vscode
But the extension doesn't appear :…

Weelax
- 1
- 2