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

Angular application cannot build when "@pezzo/client" package is added #287

Open
Lazar-Stanev opened this issue Mar 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Lazar-Stanev
Copy link

Report

An error is thrown when trying to build the project:

"./node_modules/@pezzo/client/index.esm.js:1:0 - Error: Module parse failed: 'import' and 'export' may appear only with >'sourceType: module' (1:0)
File was processed with these loaders:
./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js
You may need an additional loader to handle the result of these loaders.
import 'reflect-metadata';
| import { __awaiter, __decorate, __metadata } from 'tslib';
| import fetch from 'cross-fetch';"

Angular version - 16.2.2

In tsconfig.json:
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"declaration": false,
"module": "es2020",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "ES2022",
"skipLibCheck": true,
"typeRoots": ["node_modules/@types", "src/typings.d.ts"],
"lib": ["es2018", "dom"]
}"

Expected behavior

No response

Steps to reproduce the problem

No response

Logs (if applicable)

No response

Pezzo version

0.4.18

How do you use Pezzo?

Local Development Setup

@Lazar-Stanev Lazar-Stanev added the bug Something isn't working label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant