-
Notifications
You must be signed in to change notification settings - Fork 194
Module '".contentlayer/data"' has no exported member '...'.ts(2305) #41
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
Comments
Does it work after you restarted the TS server in VSC? |
I have done it many times:
it doesn't solve the problem. |
I had the same issue and restarting the TS server solved it for me.
|
If you haven't already, ensure that you build the content using
then restart the TS server. This fixed the issue for me. |
@laanayam333 @CarbonGhost can you test the repo i am using, |
I didn't run into this error when I cloned your repository locally. |
@CarbonGhost Thanks for testing the repo I'm using. I'm still having the same problem, I don't know if it's my editor problem or not. I have switched to MDX Bundler. I will close this issue. |
Typescript displays error when I import
data
ortype
from.contentlayer
:While this still works well, I think it's quite annoying and error prone as there are no suggestions.
Repo:
Screenshot:
The text was updated successfully, but these errors were encountered: