Skip to content

Commit b7066c7

Browse files
authored
add warning about k6 not supporting nodejs and browser natives (#159)
1 parent 696d43c commit b7066c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/data/markdown/docs/01 guides/02 Using k6/07 Modules.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ These libraries can either be downloaded and included with the test project or l
6868

6969
## Bundling node modules
7070

71+
> #### ⚠️ Limited compatibility
72+
>
73+
> k6 is not NodeJS, nor is it a browser. Packages that rely on APIs provided by NodeJS, for
74+
> instance the `os` and `fs` modules, will not work in k6. The same goes for browser-specific
75+
> APIs like the `window` object.
76+
7177
The steps of this tutorial are as follows:
7278

7379
- [Setting up the bundler](#setting-up-the-bundler)

0 commit comments

Comments
 (0)