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
В packages/payment-widget выполнил yarn workspace payment-widget add @atls-ui-proto/input, зависимость добавилась в package.json, но при попытке импортировать компонент, возникает ошибка: "Module is not listed in package.json dependencies". При нажатии на автоматическую подсказку и выполнении установки, зависимость добавляется в корневой package.json и ошибка исчезает.
yarn check
yarn check
➤ YN0000: ┌ Format
➤ YN0000: └ Completed in 1s 60ms
➤ YN0000: Done in 1s 62ms
➤ YN0000: ┌ Typecheck
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/addon/addon.
➤ YN0000: │ styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/addon/addons
➤ YN0000: │ -container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/a
➤ YN0000: │ ppearance/appearance.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/b
➤ YN0000: │ ase/base.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/p
➤ YN0000: │ osition/position.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/s
➤ YN0000: │ hape/shape.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /divider-container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /field-addon.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /field-addons-container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/appear
➤ YN0000: │ ance/appearance.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/base/b
➤ YN0000: │ ase.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/raw-in
➤ YN0000: │ put.component.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module '@emotion/styled' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/shape/
➤ YN0000: │ shape.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/textarea/add
➤ YN0000: │ on/container/container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.compon
➤ YN0000: │ ent.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module '@emotion/styled' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.styles
➤ YN0000: │ .d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.styles
➤ YN0000: │ .d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: └ Completed in 3s 406ms
git status
Текущая ветка: feature/payment-widget
Изменения, которые не в индексе для коммита:
(используйте «git add <файл>...», чтобы добавить файл в индекс)
(используйте «git restore <файл>...», чтобы отменить изменения в рабочем каталоге)
изменено: .pnp.cjs
изменено: packages/payment-widget/package.json
изменено: yarn.lock
Неотслеживаемые файлы:
(используйте «git add <файл>...», чтобы добавить в то, что будет включено в коммит)
.yarn/cache/@atls-ui-parts-conditional-render-npm-0.0.4-f7364af714-0a53cf5c8b.zip
.yarn/cache/@atls-ui-parts-events-state-npm-0.0.4-85188071cf-a741c65852.zip
.yarn/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip
.yarn/cache/@atls-ui-parts-styles-npm-0.0.4-faa7b97a87-f47f1162cb.zip
.yarn/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip
Проблема не исчезла
Вопрос
Что я не так делаю при установке пакета ?
Меня настораживают ошибки при yarn check, такие как: Error: Cannot find module '@emotion/styled' or its corresponding type declarations. Правильно ли я понимаю, что мне нужно установить что-то еще ?
Правильно ли я понимаю, что yarn check должен запускаться в корне проекта ?
The text was updated successfully, but these errors were encountered:
Нельзя просто взять и закрыть задачу…У задачи всегда должен быть триггер или причина, по которой она закрывается. Например, если там чот неактуально - нужно было написать "Не актуально, проблема решена" и закрыть задачу комментарием и это было бы правильным.
Скоуп
Установка пакета в payment-widget
Описание
В packages/payment-widget выполнил yarn workspace payment-widget add @atls-ui-proto/input, зависимость добавилась в package.json, но при попытке импортировать компонент, возникает ошибка: "Module is not listed in package.json dependencies". При нажатии на автоматическую подсказку и выполнении установки, зависимость добавляется в корневой package.json и ошибка исчезает.
Контекст
Продолжение проблемы #124
Воспроизведение
yarn workspace payment-widget add @atls-ui-proto/input
import { Input } from '@atls-ui-proto/input'
в packages/payment-widget/ui/payment-settings.component.tsxОжидаемое поведение
Успешный импорт
Логи
No response
Медиа-материалы
No response
Действия
yarn why @atls-ui-proto/input
└─ payment-widget@workspace:packages/payment-widget
└─ @atls-ui-proto/input@npm:0.0.13 [eaf3f] (via npm:^0.0.13 [eaf3f])
package.json (payment-widget):
{
"name": "payment-widget",
"version": "0.0.2",
"license": "BSD-3-Clause",
"main": "src/index.ts",
"files": [
"dist"
],
"scripts": {
"build": "yarn library build",
"prepack": "yarn run build",
"postpack": "rm -rf dist"
},
"dependencies": {
"@atls-ui-proto/input": "^0.0.13"
},
"devDependencies": {
"@types/react": "^17.0.38",
"react": "^17.0.2"
},
"peerDependencies": {
"react": "^17.0.1"
},
"publishConfig": {
"access": "public",
"main": "dist/index.js",
"typings": "dist/index.d.ts"
}
}
yarn.lock
"payment-widget@workspace:packages/payment-widget":
version: 0.0.0-use.local
resolution: "payment-widget@workspace:packages/payment-widget"
dependencies:
"@atls-ui-proto/input": ^0.0.13
"@types/react": ^17.0.38
react: ^17.0.2
peerDependencies:
react: ^17.0.1
languageName: unknown
linkType: soft
yarn check
yarn check
➤ YN0000: ┌ Format
➤ YN0000: └ Completed in 1s 60ms
➤ YN0000: Done in 1s 62ms
➤ YN0000: ┌ Typecheck
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/addon/addon.
➤ YN0000: │ styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/addon/addons
➤ YN0000: │ -container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/a
➤ YN0000: │ ppearance/appearance.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/b
➤ YN0000: │ ase/base.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/p
➤ YN0000: │ osition/position.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/attachment/s
➤ YN0000: │ hape/shape.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /divider-container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /field-addon.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/fields-addon
➤ YN0000: │ /field-addons-container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/appear
➤ YN0000: │ ance/appearance.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/base/b
➤ YN0000: │ ase.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/raw-in
➤ YN0000: │ put.component.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module '@emotion/styled' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/input/shape/
➤ YN0000: │ shape.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-parts-input-virtual-85f2343774/0/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip/node_modules/@atls-ui-parts/input/dist/textarea/add
➤ YN0000: │ on/container/container.styles.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.compon
➤ YN0000: │ ent.d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module '@emotion/styled' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.styles
➤ YN0000: │ .d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: │ .yarn/virtual/@atls-ui-proto-input-virtual-0bbe4266b5/0/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip/node_modules/@atls-ui-proto/input/dist/input.styles
➤ YN0000: │ .d.ts
➤ YN0000: │
➤ YN0000: │ Error: Cannot find module 'styled-system' or its corresponding type declarations.
➤ YN0000: │
➤ YN0000: │
➤ YN0000: └ Completed in 3s 406ms
git status
Текущая ветка: feature/payment-widget
Изменения, которые не в индексе для коммита:
(используйте «git add <файл>...», чтобы добавить файл в индекс)
(используйте «git restore <файл>...», чтобы отменить изменения в рабочем каталоге)
изменено: .pnp.cjs
изменено: packages/payment-widget/package.json
изменено: yarn.lock
Неотслеживаемые файлы:
(используйте «git add <файл>...», чтобы добавить в то, что будет включено в коммит)
.yarn/cache/@atls-ui-parts-conditional-render-npm-0.0.4-f7364af714-0a53cf5c8b.zip
.yarn/cache/@atls-ui-parts-events-state-npm-0.0.4-85188071cf-a741c65852.zip
.yarn/cache/@atls-ui-parts-input-npm-0.0.13-dae40ee3f0-9700f1b8d8.zip
.yarn/cache/@atls-ui-parts-styles-npm-0.0.4-faa7b97a87-f47f1162cb.zip
.yarn/cache/@atls-ui-proto-input-npm-0.0.13-a938ed77e9-2703ea37fe.zip
Вопрос
The text was updated successfully, but these errors were encountered: