SilentRhetoric
Vinxi server build fails: Big integer literals not available in target environment ("es2019")
I am getting an error when building locally as well as when Netlify tries to build:
.../.vinxi/build/ssr/index.js:1:40327: ERROR: Big integer literals are not available in the configured target environment ("es2019")I have looked through the Solid Start, Vinxi and Nitro docs to try to figure out where I can configure this to use a more modern target environment. My
app.config.ts
currently looks like this:
And tsconfig.json
:
Nothing in either config file seems to have any impact on this "configured target environment" so any help on how I can reconfigure this would be much appreciated!4 replies
Creating Package - Need Bundling Help
This is the first time I have tried to create a library, and I need help 😅
Objective: Provide a convenience library to make it easy for people to integrate several other libraries in a SolidJS client app (browser only; no SSR for now).
Problem: I tried to build with
My Lib --> Imported Lib that uses
Thank you in advance 🙏
tsup
using https://github.com/solidjs-community/solid-lib-starter as a starting point, but some of the libraries have a dynamic require
that errors in the browser.My Lib --> Imported Lib that uses
require
to get --> Third Party Lib
It not clear to me if I need to solve for this when building the library or on the client side. Any direction or recommendations would be much appreciated.Thank you in advance 🙏
14 replies
Why is storageSignal possibly null?
I am having trouble understanding why TypeScript thinks that this storageSignal
theme
can be null:
I am setting the initial value to a ternary and explicitly typing the signal, but alas, TS says that theme
can be "dark" | "light" | null
.
What am I missing here?15 replies
Props/Default Defaults
The tutorial example at https://www.solidjs.com/tutorial/props_defaults does not seem to behave any differently before and after being solved. What is the difference?
4 replies