You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// constants.jsexportconst{a: {// `b` would have been undefined, but we will default the value with a string
b ='default value',},}={a: {// `b` doesn't exist herec: 'test',},};
...
// foo.jsimport{b}from'./constants';// And it results inerrorbnotfoundin'./constants'import/named
It shouldn't throw an error because we have a default value for the key there.