You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
module-type(specify type value in package.json): "commonjs"
Description of the bug
package manager: yarn
web framework: nextjs 13.4.3
The deployed package on npm does not include 'dist' directory. It only includes 'lib' directory.
It seems the original source code is mistakenly deployed on npm, instead of build result.
It causes 'module not found' error when included in my project.
When I clone this project and build and import as local package - i.e. @fifteenmania/lbd-sdk-js, the package works fine.
Example codes
import*asLINEfrom'@line/lbd-sdk-js'
Error logs
- error ./src/pages/api/line-client.js:1:0
Module not found: Can't resolve '@line/lbd-sdk-js'
> 1 | import * as LINE from '@line/lbd-sdk-js'
2 |
3 | export const lineClient = new LINE.HttpClient(process.env.BASE_URL, process.env.SERVICE_API_KEY, process.env.SERVICE_API_SECRET)
4 |
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./src/pages/api/protected.ts
- warn Fast Refresh had to perform a full reload due to a runtime error.
Default information
typevalue inpackage.json): "commonjs"Description of the bug
Example codes
Error logs