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

Webpack Module Parse Error for @ticketevolution/seatmaps-client with Angular 9 #284

Open
ajayk146 opened this issue Jun 14, 2024 · 0 comments

Comments

@ajayk146
Copy link

I encountered a module parse error while working with the @ticketevolution/seatmaps-client library in an Angular 9 project. The error message suggests that a loader is not configured properly to handle the file type. Below is the error message and the relevant code snippet.

Error Message:
./node_modules/@ticketevolution/seatmaps-client/esm/index.mjs 1482:15
Module parse failed: Unexpected token (1482:15)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| rootElement
| );

return map?.publicApi;

| }
| };

Code Snippet:
import {Tevomaps} from "@ticketevolution/seatmaps-client";

const seatmap = new Tevomaps({
venueId: result[0].event_venue.id,
configurationId: result[0].configuration.id,
ticketGroups: [
{
tevo_section_name: result[0].ticketListings.ticket_groups[0].section,
retail_price: result[0].ticketListings.ticket_groups[0].retail_price,
},
],
});

const seatmapApi = seatmap.build("seatmap");
seatmapApi.highlightSection(this.eventData.ticketListings.ticket_groups.section);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant