Comments (7)
Hey!
I just had a deeper look into this. It seems like you don't have the plugin eslint-import-resolver-typescript
which is required that Eslint knows how to resolve this module.
I saw that you have installed eslint-config-next
but not using it (which uses this resolver plugin). You did import "plugin:@next/next/recommended"
instead.
If you change the eslint config to include following, it should work (be sure to use the latest version of eslint-config-next
. (The Next.js config includes the eslint plugin you'll need)
extends: [
"airbnb-typescript-prettier",
"next",
],
Else you can just install the required plugin:
https://github.com/import-js/eslint-import-resolver-typescript
Let me know if it works! :)
from analytics.
I have the next
configuration for eslint, but I am still seeing this issue.
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'airbnb-base',
'airbnb-typescript',
'next',
'prettier',
],
Admittedly a lot of this config is old and haven't audited it in a while. Nor sure if there are any conflicts happening.
from analytics.
Hey!
Thanks for reporting. We'll take a closer look into this.
I'll keep you posted!
from analytics.
@tobiaslins Would this be the same process in a non-typescript project?
from analytics.
@Hearmstrong It might not be required. There is a JavaScript version as well: https://www.npmjs.com/package/eslint-plugin-import
Note that I haven't tested this out.
from analytics.
Will close this for now. Let us know if you still have problems!
from analytics.
Thank you so much @tobiaslins! That was exactly my problem and your solution worked. I'm surprised I managed to get this far in my app without actually using eslint-import-resolver-typescript
until now 😅.
from analytics.
Related Issues (20)
- Support for Arc Browser HOT 2
- User Opt in feature HOT 2
- Redirect / rename scripts? HOT 7
- Can't use server track in Remix HOT 5
- @vercel/analytics throws errors HOT 4
- Error 400 when using analytics/server track in server actions HOT 2
- Vercel build failed with Turborepo and multiple apps deployed HOT 5
- Vercel Analytics Endpoints HOT 1
- Docs: Specify if `track` runs in development mode or not HOT 1
- Page changes are no longer tracked in SvelteKit 2 HOT 9
- Feature Request: Allow nonce as optional prop in analytics component for content security policy HOT 1
- Integration with Docusaurus HOT 1
- Module resolution warnings under Yarn PnP: `Unable to resolve path to module '@vercel/analytics/react'.eslintimport/no-unresolved` HOT 5
- City-Level analytics HOT 2
- CJS files are missing in 1.2.0 HOT 10
- Feature request: Exports HOT 2
- Cannot install the latest version of `@vercel/analytics` with `[email protected]` HOT 2
- Vercel Analytics being blocked by AdBlockers HOT 1
- SvelteKitError: Not found: /_vercel/insights/script.js with playwright/test
- Use process.env.ASSET_PREFIX when sending tracking data #63 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.