yonycalsin / nextjs-cors

:tada: nextjs-cors is a node.js package to provide a Connect/Express middleware that can be used to enable CORS with various options :rocket:
MIT License
222 stars 9 forks source link

types not supported. #89

Closed devilankur18 closed 6 months ago

devilankur18 commented 6 months ago

Describe the bug Not able to import types for typescript.

To Reproduce Steps to reproduce the behavior:

  1. Install package via npm
  2. Add to the nextjs project
  3. In vscode, cant see imports working.

Expected behavior Types should be loaded in vscode automatically.

Screenshots

image

Desktop (please complete the following information):

devilankur18 commented 6 months ago

Remove node_modules, and reinstalled. Worked.