Tom Goff
Tom Goff
Aarktype
Created by Tom Goff on 12/19/2024 in #questions
Encountering "Uncaught SyntaxError: Identifier 'module' has already been declared"
I'm new to arktype and don't have a deep understanding of how web bundlers/etc work, so this may be a bit of a noob question. I'm using npm and parcel in our code base with several other package dependencies. The error above is referring to this line of code:
export const module: ModuleParser = InternalScope.module
export const module: ModuleParser = InternalScope.module
https://github.com/arktypeio/arktype/blob/main/ark/type/scope.ts#L338 My best guess is there some conflict because my project references some package that uses CommonJS modules and therefore declaring it's own module. Any idea if this is possible and/or any other insight? Thanks in advance! Tom
10 replies