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
var stacheTransformer = require('stache-inline-transformer');
var whichModules = require('stache-inline-transformer/dist/transformer/modules');
the problem is those lines need to be with .default at the end, like:
var stacheTransformer = require('stache-inline-transformer').default;
var whichModules = require('stache-inline-transformer/dist/transformer/modules').default;
Hi,
I get the following error when I try to load this plugin into a project that has stache files:
[plugin:vite:stache-inline] whichModules is not a function
I'm trying to migrate the project from Webpack to Vite.
Any ideas what I do wrong?
The text was updated successfully, but these errors were encountered: