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

DeprecationWarning: Use of deprecated folder mapping #122

Closed
shadyar-bakr opened this issue Oct 13, 2021 · 1 comment
Closed

DeprecationWarning: Use of deprecated folder mapping #122

shadyar-bakr opened this issue Oct 13, 2021 · 1 comment

Comments

@shadyar-bakr
Copy link

shadyar-bakr commented Oct 13, 2021

Describe the bug

ERROR  (node:62280) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/shadear/Projects/local/web/nuxt3-app/node_modules/nuxt-windicss/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

To Reproduce
Steps to reproduce the behavior:

  1. Add nuxt-windicss module to nuxt 3
  2. Run 'npm run dev'
  3. See error.

Expected behavior
Should work without giving error

Additional context
Related issues:
Postcss
Vuex

Temp fix
Change "./": "./", to "./*": "./*",
https://github.com/windicss/nuxt-windicss-module/blob/b532838b0973aca54d6df5d506a3263efac6bc5f/package.json#L24

@harlan-zw
Copy link
Member

Hey @shadear

Thanks for the issue. This is fixed in v2 :)

https://github.com/windicss/nuxt-windicss-module/releases/tag/2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants