deep-foundation / deep-foundation/deepcase-app

Error: Module not found: Can't resolve '@deep-foundation/deeplinks/imports/client'

Open
#285 3 comments 0 reactions 1 assignee Claimed by @konard View on GitHub
bug
Dominant language
TypeScript
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

![Screenshot_20240223_021701](https://github.com/deep-foundation/deepcase-app/assets/1431904/61473016-c0fc-4af3-a1da-257623875217)

Error message from browser:

```
Server Error
Error: Module not found: Can't resolve '@deep-foundation/deeplinks/imports/client'
1 |
> 2 | import { DeepProvider, useDeep } from '@deep-foundation/deeplinks/imports/client';
3 | import { Link, useMinilinksFilter } from '@deep-foundation/deeplinks/imports/minilinks';
4 | import dynamic from "next/dynamic";
5 | import React, { useCallback, useEffect, useRef, useState } from 'react';

https://nextjs.org/docs/messages/module-not-found

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack

https://nextjs.org/docs/messages/module-not-found

https://nextjs.org/docs/messages/module-not-found
getNotFoundError
file:///workspace/dev/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js (120:16)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
async getModuleBuildError
file:///workspace/dev/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js (102:27)
async
file:///workspace/dev/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js (29:49)
async
file:///workspace/dev/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js (27:21)
```

Error message from terminal:

```
0] ⨯ ./pages/index.tsx:2:0
[0] Module not found: Can't resolve '@deep-foundation/deeplinks/imports/client'
[0] 1 |
[0] > 2 | import { DeepProvider, useDeep } from '@deep-foundation/deeplinks/imports/client';
[0] 3 | import { Link, useMinilinksFilter } from '@deep-foundation/deeplinks/imports/minilinks';
[0] 4 | import dynamic from "next/dynamic";
[0] 5 | import React, { useCallback, useEffect, useRef, useState } from 'react';
[0]
[0] https://nextjs.org/docs/messages/module-not-found
[0] ⚠ ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0]
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0]
[0] ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0]
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] ./pages/index.tsx
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.