Adrián Mouly
06/18/2022, 4:37 AMcommonjs and esnext that some frameworks uses on their TS Config file.
I created my own private construct library to host some constructs, and I never do imports with .js . Copied the esnext config from SST source code, and my library is failing due this issue… it can not find my imports.
TL;DR: why SST usses esnext, appending .js on everything, and not commonjs?
Which one should I use?thdxr
06/18/2022, 5:01 AMthdxr
06/18/2022, 5:01 AMthdxr
06/18/2022, 5:01 AMthdxr
06/18/2022, 5:01 AMAdrián Mouly
06/18/2022, 5:02 AMAdrián Mouly
06/18/2022, 5:02 AMthdxr
06/18/2022, 5:02 AMAdrián Mouly
06/18/2022, 5:02 AMthdxr
06/18/2022, 5:02 AMAdrián Mouly
06/18/2022, 5:03 AMthdxr
06/18/2022, 5:03 AMAdrián Mouly
06/18/2022, 5:03 AMimport { WebsiteDeployment } from "@securitize/cdk-website";Adrián Mouly
06/18/2022, 5:03 AMAdrián Mouly
06/18/2022, 5:04 AMthdxr
06/18/2022, 5:05 AMAdrián Mouly
06/18/2022, 5:05 AMthdxr
06/18/2022, 5:05 AMAdrián Mouly
06/18/2022, 5:06 AMAdrián Mouly
06/18/2022, 5:06 AM.js in the imports?thdxr
06/18/2022, 5:07 AMAdrián Mouly
06/18/2022, 5:08 AMAdrián Mouly
06/18/2022, 5:08 AMexport * from './WebsiteDeployment.js';Adrián Mouly
06/18/2022, 5:08 AM.js there now.Adrián Mouly
06/18/2022, 5:08 AMAdrián Mouly
06/18/2022, 5:12 AMAdrián Mouly
06/18/2022, 5:13 AMAdrián Mouly
06/18/2022, 5:14 AMthdxr
06/18/2022, 5:21 AMAdrián Mouly
06/18/2022, 5:24 AMthdxr
06/18/2022, 5:24 AMAdrián Mouly
06/18/2022, 5:24 AMtarget and lib.Adrián Mouly
06/18/2022, 5:25 AMtsconfig file I want to kill myself.Adrián Mouly
06/18/2022, 5:25 AMAdrián Mouly
06/18/2022, 5:25 AMAdam Fanello
06/20/2022, 5:25 PMYou can't use CommonJS with sst, use ESM everywhereWhat? Since when? I only use CommonJS because ESM is such a minefield.
thdxr
06/20/2022, 5:26 PMthdxr
06/20/2022, 5:27 PMconst { Api } = require("@serverless-stack/resources")Adam Fanello
06/20/2022, 5:27 PMthdxr
06/20/2022, 5:29 PMthdxr
06/20/2022, 5:29 PM@serverless-stack-slack/resources as a dependency in an environment that cannot tolerate esm depsAdam Fanello
06/20/2022, 5:36 PMthdxr
06/20/2022, 5:46 PMAdrián Mouly
06/21/2022, 4:53 AM@mdx-js/react old version.
But some other app is bulling the latest.Adrián Mouly
06/21/2022, 4:53 AMAdrián Mouly
06/21/2022, 4:54 AMAdrián Mouly
06/21/2022, 4:54 AMnode_modules it has the right version… but when it builds, it’s uses the one on the root node_modules 😐