browserslist-useragent icon indicating copy to clipboard operation
browserslist-useragent copied to clipboard

yamlparser dependency error

Open konnetrofast13 opened this issue 3 years ago • 3 comments

version : 3.0.3 , 3.0.2 , 2.0.1 and maybe other releases .

while requiring thr browserslist-useragent in a CRA, i got the error :

Can't resolve 'yamlparser' in Path/node_modules/useragent/lib'

konnetrofast13 avatar Oct 14 '20 12:10 konnetrofast13

had the same issue and yarn add ymlparser made it work, but it should be part of the dependencies.

ghost avatar Nov 04 '20 07:11 ghost

had the same issue and yarn add ymlparser made it work, but it should be part of the dependencies.

have the same error, but yarn add ymlparser raises an error:

yarn add v1.22.5
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/ymlparser: Not found".
info If you think this is a bug, please open a bug report with the information provided in ".../yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.```

budarin avatar Dec 27 '20 08:12 budarin

had the same issue and yarn add ymlparser made it work, but it should be part of the dependencies.

have the same error, but yarn add ymlparser raises an error:

yarn add v1.22.5
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/ymlparser: Not found".
info If you think this is a bug, please open a bug report with the information provided in ".../yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.```

Try yarn add yamlparser instead.

This is due to the useragent dependency in this package which has yamlparser as devDependency instead of regular dependency.

larspa avatar Dec 29 '20 13:12 larspa

This should no longer be an issue with v4.0.0 now that we're removed useragent

pastelsky avatar Oct 31 '22 13:10 pastelsky