Mike McCall
10/21/2021, 4:24 AMError: Cannot use e "__Schema" from another module or realm.
Kelly Davis
10/22/2021, 3:01 PMMike McCall
10/22/2021, 5:11 PMMike McCall
10/22/2021, 5:12 PMFrank
NODE_ENV
set to production
when u run sst start, and that’s why it works locally?Mike McCall
10/22/2021, 6:41 PMMike McCall
10/22/2021, 6:42 PMFrank
echo $NODE_ENV
in SEED build server, NODE_ENV
is undefined
. What is it set to on ur local?Mike McCall
10/22/2021, 6:47 PMMike McCall
10/22/2021, 6:48 PMFrank
Mike McCall
10/22/2021, 6:49 PMvar Mh = process.env.NODE_ENV === "production" ? function (r, t) { return r instanceof t } : function (r, t) {
if (r instanceof t) return !0; if (r) {
var n = r.constructor, i = t.name; if (i && n && n.name === i) throw new Error("Cannot use ".concat(i, ' "').concat(r, `" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
<https://yarnpkg.com/en/docs/selective-version-resolutions>
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`))
} return !1
};
Mike McCall
10/22/2021, 6:49 PMMike McCall
10/22/2021, 6:49 PMvar Mh = process.env.NODE_ENV === "production
I noticed this ^ and that's how I bypassed itMike McCall
10/22/2021, 6:49 PMMike McCall
10/22/2021, 6:52 PMError: Cannot use e "__Schema" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
<https://yarnpkg.com/en/docs/selective-version-resolutions>
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
at km (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:1:8941)
at bt (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:5697)
at ao (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:5496)
at Cl (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:8294)
at Gl (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:8330)
at new Ht (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:8005)
at Ht (/var/task/src/api-stack/rules/eventBridgeToAppSync.js:12:8023)
at /var/task/src/api-stack/rules/eventBridgeToAppSync.js:34:8805
at /var/task/src/api-stack/rules/eventBridgeToAppSync.js:1:249
at /var/task/src/api-stack/rules/eventBridgeToAppSync.js:39:2994
Frank
graphql
modules installed.Mike McCall
10/22/2021, 6:53 PMFrank
Frank
Mike McCall
10/22/2021, 6:53 PMMike McCall
10/22/2021, 6:54 PMFrank
Mike McCall
10/22/2021, 6:55 PMFrank
Mike McCall
10/22/2021, 6:57 PMFrank
Mike McCall
10/22/2021, 6:58 PMMike McCall
10/22/2021, 6:58 PMMike McCall
10/22/2021, 7:00 PMFrank
Frank
Mike McCall
10/22/2021, 7:01 PM