nuxt-modules / nuxt-modules/strapi
error import from module entry-point not allowed
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 717
- Forks
- 89
- Avg merge
- 7h 3m
- Merged PRs (30d)
- 6
Description
Version
@nuxtjs/strapi: 2.0.0
nuxt: 3.16.2
Reproduction Link
Steps to reproduce
- install nuxt strapi
- import type from '@nuxtjs/strapi'
What is Expected?
- can import without error
What is actually happening?
got an error Importing directly from module entry-points is not allowed. [importing @nuxtjs/strapifrompages/index.vue]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the import from pages/index.vue using @nuxtjs/strapi 2.0.0 with Nuxt 3.16.2, then inspect the module entry point and its exported types. Done means the type import no longer triggers the module-entry-point error; add coverage for the reported import behavior if the repository has a suitable test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxtjs, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100