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
is it possible to change the require annotation into import annotation?
Context
I am using using Vite for my react application and vite doesn't really support require("your file") annotations resulting in an error in production :
ReferenceError: require is not defined
const eT=require("@stoplight/json-schema-merge-allof")
Current Behavior
right now the path @stoplight/json-schema-merge-allof is included using require statement and all if it's content is using require statement as well (not sure if there are other files affected)
Expected Behavior
use import instead of require
Possible Workaround/Solution
example : import "@stoplight/json-schema-merge-allof"
Steps to Reproduce
Environment
React Vite
The text was updated successfully, but these errors were encountered:
is it possible to change the require annotation into import annotation?
Context
I am using using Vite for my react application and vite doesn't really support require("your file") annotations resulting in an error in production :
ReferenceError: require is not defined
const eT=require("@stoplight/json-schema-merge-allof")
Current Behavior
right now the path @stoplight/json-schema-merge-allof is included using require statement and all if it's content is using require statement as well (not sure if there are other files affected)
Expected Behavior
use import instead of require
Possible Workaround/Solution
example : import "@stoplight/json-schema-merge-allof"
Steps to Reproduce
Environment
React Vite
The text was updated successfully, but these errors were encountered: