Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #28742
Closed
Open
Issue created May 08, 2019 by Administrator@rootContributor

[v5] lowercase filenames breaks imports

Created by: nlemoine

Hi,

I'm using latest version of bootstrap (master). Until now, I built my js bundle (with rollup) on my local laptop (Mac OS, unsensitive case filesystem).

The file looks like:

import 'bootstrap/js/dist/carousel';
import 'bootstrap/js/dist/collapse';
import 'bootstrap/js/dist/modal';

Works like a charm. Until I setup a CI to do the build job for me.

Could not resolve './dom/eventHandler.js' from node_modules/bootstrap/js/dist/carousel.js

I guess this error is caused by require('./dom/eventHandler.js') whereas the filename is eventhandler.js.

Maybe filenames should adopt another standard to be more consistent (lower with dashes)?

Assignee
Assign to
Time tracking