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

Error in npm run build in plugin #5

Open
arnabneogi86 opened this issue Jan 5, 2023 · 0 comments
Open

Error in npm run build in plugin #5

arnabneogi86 opened this issue Jan 5, 2023 · 0 comments

Comments

@arnabneogi86
Copy link

While running npm run build in the plugin, it is throwing error:

[email protected] build-esm
BABEL_OUTPUT=esm babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir esm

'BABEL_OUTPUT' is not recognized as an internal or external command,
operable program or batch file.

and the esm folder is not created.

On running
BABEL_OUTPUT=esm babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir esm

It is throwing error:
src\index.ts -> esm\index.js
SyntaxError: src/plugin/buildQuery.ts: Unexpected token, expected , (21:43)
19 | import { buildQueryContext, QueryFormData } from '@superset-ui/core';
20 |

21 | export default function buildQuery(formData: QueryFormData) {
| ^
22 | return buildQueryContext(formData, baseQueryObject => [
23 | {
24 | ...baseQueryObject,

Am I missing something?

followed the exact steps

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

No branches or pull requests

1 participant