Describe the bug
Importing torus through import Torus from '@toruslabs/torus-embed'; leads to errors saying Module not found: Can't resolve 'http'. This happens for http, https, and os.
When the following into my next.config.js file, it leads to an error saying TypeError: Class extends value undefined is not a constructor or null which i believe is a circular import error.
http: false,
https: false,
os: false,
To Reproduce
My nextJS component is the following:
Describe the bug Importing torus through
import Torus from '@toruslabs/torus-embed';
leads to errors sayingModule not found: Can't resolve 'http'
. This happens forhttp
,https
, andos
.When the following into my next.config.js file, it leads to an error saying
TypeError: Class extends value undefined is not a constructor or null
which i believe is a circular import error.To Reproduce My nextJS component is the following:
This leads to the
Module not found: Can't resolve 'http'
error.