Skip to content
Advertisement

options.domAPI is not a function

I’ve tried adding stylus config of Vuetify to modify the global variables, until I noticed that it’s not supported anymore.

I’ve run this command to install the required loaders: npm i --save-dev stylus stylus-loader css-loader style-loader.

After that, I started getting the error in the title, and after removing those libraries, it didn’t remove it at all. I’ve tried running npm reinstall and have a complete fresh install of the npm packages.

My config is like this:

JavaScript

Error log:

JavaScript

This is an extremely annoying issue, as I’ve not found anything related to it. Any help is greatly appreciated.

Advertisement

Answer

I had to remove style-loader and only use css-loader to get this error go.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement