NoiseJS Uncaught TypeError: Cannot set properties of undefined (setting ‘noise’)

Same problem like this one:
Having trouble importing a library: cannot set properties of undefined (setting ‘noise’)

Unfortunately, I can’t upvote yet, and my comment asking whether he already found a solution was deleted.

I’m trying to implement https://github.com/josephg/noisejs in a three.js project based on this tutorial: https://hackernoon.com/how-to-draw-generative-nft-mushrooms-with-threejs
where it obviously worked. So, I have to assume that I did something wrong. Can you tell me what? Here’s the error:

perlin.js:18 Uncaught TypeError: Cannot set properties of undefined (setting 'noise')
    at perlin.js:18:29
    at perlin.js:310:3

These are the respective lines in perlin.js:

(function(global){
  var module = global.noise = {}; // l18
...

})(this); // l318

For now, I have tried importing noiseJS this way:

import * as NOISE from '../../../vendor/noisejs-master/perlin.js';

but I have already tried every other import style that I know of.

Any help would be highly appreciated.