Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move source-map to dependencies #18

Merged
merged 1 commit into from
Mar 15, 2021
Merged

fix: move source-map to dependencies #18

merged 1 commit into from
Mar 15, 2021

Conversation

lukashass
Copy link
Contributor

I'm using @intlify/vite-plugin-vue-i18n with yarn 2.

When starting vite I get:

Error: @intlify/cli tried to access source-map, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: source-map (via "source-map")
Required by: @intlify/cli@npm:0.2.0 (via ./.yarn/cache/@intlify-cli-npm-0.2.0-11f1d4a30e-f709484da4.zip/node_modules/@intlify/cli/lib/src/generator/)

My workaround for now is adding the following to .yarnrc.yml

packageExtensions:
  "@intlify/cli@0.2.0":
    dependencies:
      source-map: "*"

It would certainly be nice if that wouldn't be necessary 😉
Hence this PR.

Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kazupon kazupon merged commit b8de280 into intlify:main Mar 15, 2021
@kazupon kazupon added the Type: Maintenance Repository Maintenance label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Repository Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants