Skip to content

Cannot build a project using beta-2 with parcel.js #1813

Discussion options

You must be logged in to vote

If the modal is working properly without initTE method this means your app is most likely using the umd version of tw-elements. Without initTE method the autoinits (inits via data attributes) are not beeing added in es format.

I have few questions that could help to locate the problem:

  • the change in settings in package.json (type="module") didn't make the behavior change? It should make the package use the tw-elements.es.min.js and not look for charts.js file. Maybe it will show the imported one in you browser devtools (i.e. card Sources for chrome => look for js files from tw-elements)
  • on the other hand, did a console in local environment show anything? In umd format the initTE method i…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@manzanotti
Comment options

@juujisai
Comment options

@manzanotti
Comment options

@juujisai
Comment options

Answer selected by filipkappa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants