Open AriesAlex opened 3 months ago
"dotenv-expand": "^5.1.0" btw
Idem but with craco and react
C:\Users\mluet\Documents\Scripts\Storia\storia>bun run start
$ craco start
29 | return newEnv.replace(replacePart, value)
30 | }, envValue)
31 | }
32 |
33 | for (var configKey in config.parsed) {
34 | var value = environment.hasOwnProperty(configKey) ? environment[configKey] : config.parsed[configKey]
^
TypeError: environment.hasOwnProperty is not a function. (In 'environment.hasOwnProperty(configKey)', 'environment.hasOwnProperty' is undefined)
at dotenvExpand (C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\dotenv-expand\lib\main.js:34:17)
at C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\react-scripts\config\env.js:43:5
at forEach (:1:21)
at C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\react-scripts\config\env.js:41:1
at resolveConfigFilePath (C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\@craco\craco\dist\lib\cra.js:17:9)
at getCraPathsPath (C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\@craco\craco\dist\lib\cra.js:58:12)
at getCraPaths (C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\@craco\craco\dist\lib\cra.js:63:37)
at C:\Users\mluet\Documents\Scripts\Storia\storia\node_modules\@craco\craco\dist\scripts\start.js:21:25
error: script "start" exited with code 1
A project I use to manage env variables (envkey, issue here) also depends on the process.env.hasOwnProperty
, which is not present in the Bun runtime.
What version of Bun is running?
1.1.0
What platform is your computer?
Microsoft Windows NT 10.0.22635.0 x64
What steps can reproduce the bug?
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response