bug: generated filename is too long #5699
Labels
ionitron: needs reproduction
This PR or Issue does not have a reproduction case URL
ionitron: stale issue
This issue has not seen any activity for a long period of time
Prerequisites
Stencil Version
4.16.0 but spotted on earlier versions as well
Current Behavior
enableImportInjection: true
in dev modeThrows the error:
No loader is configured for ".map" files: design-system/stencil/dist/esm/.js.map
The error points to the last line here:
/* @vite-ignore /
/ webpackInclude: /.entry.js$/ /
/ webpackExclude: /.system.entry.js$/ /
/ webpackMode: "lazy" */
./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}
).then((importedModule) => {This occurs for all component files.
Building in prod mode returns that it cannot find a file which is called /dist/esm/-.js
This happens in one of the component entry file which is 28 components and its first line is:
export { Y as yoo_animated_illustration, a as yoo_audio_player, b as yoo_avatars, c as yoo_banner, d as yoo_card_file, e as yoo_collapsible, f as yoo_context_menu, h as yoo_form_checkbox, i as yoo_form_document, j as yoo_form_document_dialog, k as yoo_header, l as yoo_illustration, m as yoo_ion_content, o as yoo_ion_scroll, p as yoo_ion_slide, q as yoo_ion_slides, r as yoo_items, s as yoo_links_preview, t as yoo_loader, u as yoo_mention_tag, v as yoo_navbar, w as yoo_photo_editor, x as yoo_progress_bar, y as yoo_range, z as yoo_swipe_container, A as yoo_tabs, B as yoo_truncated_line, C as yoo_videoplayer_core } from './yoo-animated-illustration.yoo-audio-player.yoo-avatars.yoo-banner.yoo-card-file.yoo-collapsible.yoo-context-menu.yoo-form-checkbox.yoo-form-document.yoo-form-document-dialog.yoo-header.yoo-illustration.yoo-ion-content.yoo-ion-scroll.yoo-ion-slide.yoo-ion-slides.yoo-items.yoo-links-preview.yoo-loader.yoo-mention-tag.yoo-navbar.yoo-photo-editor.yoo-progress-bar.yoo-range.yoo-swipe-container.yoo-tabs.yoo-truncated-line.yoo-videoplayer-core-5ae2fd71.js';
other components that have multiple components do not contain a similar line.
Expected Behavior
Make it work will be nice.
My guess is that the problem is that the generated filename is too long hence the file is not created. Need to add a check that the concatenation of component name does not exceed the size of a potential filename
System Info
Steps to Reproduce
will be complex to replicate
Code Reproduction URL
N/A
Additional Information
No response
The text was updated successfully, but these errors were encountered: