nuxt-modules / nuxt-modules/strapi

error import from module entry-point not allowed

Open
#469 1 comment 0 reactions 0 assignees View on GitHub

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
  1. install nuxt strapi
  2. import type from '@nuxtjs/strapi'
What is Expected?
  1. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.