Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn's link protocol status & other resolve problems #9139

Open
kubijo opened this issue Jan 30, 2025 · 0 comments
Open

Yarn's link protocol status & other resolve problems #9139

kubijo opened this issue Jan 30, 2025 · 0 comments

Comments

@kubijo
Copy link

kubijo commented Jan 30, 2025

Hello. Since you landed the built-in Yarn PNP support, I tried to revisit replacing our webpack setup by RSpack, but it appears that it's still not working as expected.

1) is the link protocol supposed to work?

It doesn't seem so because I'm just getting errors that those dependencies cannot be found.
We are using those to clean up long relative imports in monorepo…

// from
import { foo } from '../../../shared/lib/util' ;
// to
import { foo } from 'lib/util' ;

package.json

{
    "dependencies": {
        "lib": "link:../../shared/lib/",
    },
}

2) Unknown [object Object] warnings

WARNING in ./shared/components/Promo/Promo.tsx
  ⚠ [object Object]

 @ ./shared/components/Promo/index.tsx
 @ ./shared/components/index.tsx
 @ ./shared/lib/layout/components/Layout.tsx
 @ ./shared/lib/layout/index.tsx
 @ ./packages/solo/index.tsx

3) 3rd party module imports broken

WARNING in ./shared/components/Promo/Promo.tsx
  ⚠ ESModulesLinkingWarning: export 'Information' (imported as 'Information') was not found in '@carbon/react/icons' (possible exports: AILabel, AILabelActions, AILabelContent, AISkeletonIcon, AISkeletonPlaceholder, AISkeletonText, Accordion, AccordionItem, AccordionSkeleton, ActionableNotification, AspectRatio, Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton, Button, ButtonKinds, ButtonSet, ButtonSizes, ButtonSkeleton, ButtonTooltipAlignments, ButtonTooltipPositions, Callout, Checkbox, CheckboxGroup, CheckboxSkeleton, ClassPrefix, ClickableTile, CodeSnippet, CodeSnippetSkeleton, Column, ColumnHang, ComboBox, ComboButton, ComposedModal, ContainedList, ContainedListItem, Content, ContentSwitcher, ControlledPasswordInput, Copy, CopyButton, DangerButton, DataTable, DataTableSkeleton, DatePicker, DatePickerInput, DatePickerSkeleton, DefinitionTooltip, DismissibleTag, Dropdown, DropdownSkeleton, ErrorBoundary, ErrorBoundaryContext, ExpandableSearch, ExpandableTile, FileUploader, FileUploaderButton, FileUploaderDropContainer, FileUploaderItem, FileUploaderSkeleton, Filename, FilterableMultiSelect, FlexGrid, FluidForm, Form, FormContext, FormGroup, FormItem, FormLabel, GlobalTheme, Grid, GridSettings, HStack, Header, HeaderContainer, HeaderGlobalAction, HeaderGlobalBar, HeaderMenu, HeaderMenuButton, HeaderMenuItem, HeaderName, HeaderNavigation, HeaderPanel, HeaderSideNavItems, Heading, IconButton, IconButtonKinds, IconSkeleton, IconSwitch, IconTab, IdPrefix, InlineLoading, InlineNotification, Layer, Link, ListItem, Loading, Menu, MenuButton, MenuItem, MenuItemDivider, MenuItemGroup, MenuItemRadioGroup, MenuItemSelectable, Modal, ModalBody, ModalFooter, ModalHeader, ModalWrapper, MultiSelect, NotificationActionButton, NotificationButton, NumberInput, NumberInputSkeleton, OperationalTag, OrderedList, OverflowMenu, OverflowMenuItem, Pagination, PaginationNav, PaginationSkeleton, PasswordInput, Popover, PopoverContent, PrefixContext, PrimaryButton, ProgressBar, ProgressIndicator, ProgressIndicatorSkeleton, ProgressStep, RadioButton, RadioButtonGroup, RadioButtonSkeleton, RadioTile, Row, Search, SearchSkeleton, SecondaryButton, Section, Select, SelectItem, SelectItemGroup, SelectSkeleton, SelectableTag, SelectableTile, SideNav, SideNavDetails, SideNavDivider, SideNavFooter, SideNavHeader, SideNavIcon, SideNavItem, SideNavItems, SideNavLink, SideNavLinkText, SideNavMenu, SideNavMenuItem, SideNavSwitcher, SkeletonIcon, SkeletonPlaceholder, SkeletonText, SkipToContent, Slider, SliderSkeleton, Stack, StaticNotification, StructuredListBody, StructuredListCell, StructuredListHead, StructuredListInput, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, Switch, Switcher, SwitcherDivider, SwitcherItem, Tab, TabContent, TabList, TabListVertical, TabPanel, TabPanels, Table, TableActionList, TableBatchAction, TableBatchActions, TableBody, TableCell, TableContainer, TableExpandHeader, TableExpandRow, TableExpandedRow, TableHead, TableHeader, TableRow, TableSelectAll, TableSelectRow, TableSlugRow, TableToolbar, TableToolbarAction, TableToolbarContent, TableToolbarMenu, TableToolbarSearch, Tabs, TabsSkeleton, TabsVertical, Tag, TagSkeleton, TextArea, TextAreaSkeleton, TextInput, TextInputSkeleton, Theme, ThemeContext, Tile, TileAboveTheFoldContent, TileBelowTheFoldContent, TileGroup, TimePicker, TimePickerSelect, ToastNotification, Toggle, ToggleSkeleton, ToggleSmallSkeleton, Toggletip, ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel, Tooltip, TreeNode, TreeView, UnorderedList, VStack, unstable_FeatureFlags, unstable_Layout, unstable_LayoutDirection, unstable_OverflowMenuV2, unstable_PageSelector, unstable_Pagination, unstable_Text, unstable_TextDirection, unstable__AiSkeletonIcon, unstable__AiSkeletonPlaceholder, unstable__AiSkeletonText, unstable__ChatButton, unstable__ChatButtonSkeleton, unstable__FluidComboBox, unstable__FluidComboBoxSkeleton, unstable__FluidDatePicker, unstable__FluidDatePickerInput, unstable__FluidDatePickerSkeleton, unstable__FluidDropdown, unstable__FluidDropdownSkeleton, unstable__FluidMultiSelect, unstable__FluidMultiSelectSkeleton, unstable__FluidSearch, unstable__FluidSearchSkeleton, unstable__FluidSelect, unstable__FluidSelectSkeleton, unstable__FluidTextArea, unstable__FluidTextAreaSkeleton, unstable__FluidTextInput, unstable__FluidTextInputSkeleton, unstable__FluidTimePicker, unstable__FluidTimePickerSelect, unstable__FluidTimePickerSkeleton, unstable__Slug, unstable__SlugActions, unstable__SlugContent, unstable_useFeatureFlag, unstable_useFeatureFlags, unstable_useLayoutDirection, useContextMenu, useIdPrefix, useLayer, usePrefersDarkScheme, usePrefix, useTheme)
@kubijo kubijo changed the title Yarn's link protocol status Yarn's link protocol status & other resolve problems Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant