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
I've tried also passing an absolute hardcoded path to the root as well as path.resolve(__dirname, '../') but no success so far.
I've also tried including package.json in the path but that also didn't work.
Has someone here managed to get the path property to work? What am I doing wrong?
I can pass the package.json data directly if I read the file but I'd like to be able to correctly specify the root of my project since the loader may need to look for other files as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm having trouble targeting the
package.json
file where I want to access the browserslist configuration.My structure is as follows:
From the documentation I can specify a
path
property but I can't seem to get it to work. Here's what I have currently:I've tried also passing an absolute hardcoded path to the root as well as
path.resolve(__dirname, '../')
but no success so far.I've also tried including package.json in the path but that also didn't work.
Has someone here managed to get the
path
property to work? What am I doing wrong?I can pass the package.json data directly if I read the file but I'd like to be able to correctly specify the root of my project since the loader may need to look for other files as well.
Thanks,
Valentin
Beta Was this translation helpful? Give feedback.
All reactions