TypeStrong / TypeStrong/ts-loader

Error import type in dépendance.

Open
#1,512 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.5k
Forks
439
Avg merge
17h 17m
Merged PRs (30d)
2

Description

Hello i use Webpack encore and in my project, i install typescript.

On start the project no problem.
Now i install @react-navigation/native @react-navigation/stack

They are in this dépendance

import type or import typeof

When i use Yarn watch i have this error :
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file

If you know this problem ?

Cordialy

Contributor guide

Open the contributing guide

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

Start by reproducing the Yarn watch failure with the reported @react-navigation/native and @react-navigation/stack dependencies, focusing on their import type or import typeof usage. Review the Webpack Encore and TypeScript loader configuration; done would mean watch mode processes those imports without the reported loader error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript, webpack
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.