
Team, Any idea why am i facing this issue when i do *yarn build * for ovirt-engine-ui-extensions 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' /home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-dom.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' /home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search-test.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' /home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module' error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

did you run `yarn install`? On Tue, Nov 12, 2019 at 12:35 PM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Team,
Any idea why am i facing this issue when i do yarn build for ovirt-engine-ui-extensions
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-dom.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search-test.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search.js 1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/2AUCPK6OE52DYE...

Yeah, it is installed successfully. On Tue, Nov 12, 2019 at 6:41 PM Benny Zlotnik <bzlotnik@redhat.com> wrote:
did you run `yarn install`?
On Tue, Nov 12, 2019 at 12:35 PM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Team,
Any idea why am i facing this issue when i do yarn build for
ovirt-engine-ui-extensions
1:1 error Parsing error: 'import' and 'export' may appear only with
'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-dom.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search-test.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search.js this command. this command. this command.
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/2AUCPK6OE52DYE...

Hi Ritesh, Just ran this without issue: ======== [sdickers@ghost test]$ rpm -q nodejs nodejs-10.16.3-1.fc30.x86_64 [sdickers@ghost test]$ rpm -q yarn yarn-1.19.1-1.noarch [sdickers@ghost test]$ git clone https://gerrit.ovirt.org/ovirt-engine-ui-extensions Cloning into 'ovirt-engine-ui-extensions'... remote: Counting objects: 4, done remote: Total 669 (delta 0), reused 669 (delta 0) Receiving objects: 100% (669/669), 1.13 MiB | 3.39 MiB/s, done. Resolving deltas: 100% (182/182), done. [sdickers@ghost test]$ cd ovirt-engine-ui-extensions/ [sdickers@ghost ovirt-engine-ui-extensions]$ yarn yarn install v1.19.1 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.9: The platform "linux" is incompatible with this module. info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "patternfly-react > table-resolver@3.3.0" has unmet peer dependency "redux@>= 3.0.0 < 4.0.0". [4/4] Building fresh packages... Done in 12.18s. [sdickers@ghost ovirt-engine-ui-extensions]$ yarn build yarn run v1.19.1 $ yarn test $ yarn lint $ eslint . --ext js,jsx Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration . $ NODE_ENV=test jest --no-watch <snip the jest output> Test Suites: 5 passed, 5 total Tests: 52 passed, 52 total Snapshots: 0 total Time: 4.153s Ran all test suites. $ NODE_ENV=production webpack --config webpack.prod.js production webpack configuration: <snip the webpack output> Done in 46.59s. [sdickers@ghost ovirt-engine-ui-extensions]$ ls -1 dist ui-extensions.json ui-extensions-resources ======== Make sure your node and yarn are all ok. I've never had the problem you are showing. If still doesn't work, maybe you have webpack, babel, eslit or jest installed globally and it's getting picked up from the wrong place? On Tue, Nov 12, 2019 at 8:44 AM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Yeah, it is installed successfully.
On Tue, Nov 12, 2019 at 6:41 PM Benny Zlotnik <bzlotnik@redhat.com> wrote:
did you run `yarn install`?
On Tue, Nov 12, 2019 at 12:35 PM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Team,
Any idea why am i facing this issue when i do yarn build for
ovirt-engine-ui-extensions
1:1 error Parsing error: 'import' and 'export' may appear only with
'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-dom.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search-test.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search.js this command. this command. this command.
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/2AUCPK6OE52DYE...
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/J4DCCXLVUHW67X...
-- Scott Dickerson Senior Software Engineer RHV-M Engineering - UX Team Red Hat, Inc

Scott, I re-installed node and yarn it worked. Thanks for the solution. On Wed, Nov 13, 2019 at 3:11 AM Scott Dickerson <sdickers@redhat.com> wrote:
Hi Ritesh,
Just ran this without issue:
======== [sdickers@ghost test]$ rpm -q nodejs nodejs-10.16.3-1.fc30.x86_64 [sdickers@ghost test]$ rpm -q yarn yarn-1.19.1-1.noarch [sdickers@ghost test]$ git clone https://gerrit.ovirt.org/ovirt-engine-ui-extensions Cloning into 'ovirt-engine-ui-extensions'... remote: Counting objects: 4, done remote: Total 669 (delta 0), reused 669 (delta 0) Receiving objects: 100% (669/669), 1.13 MiB | 3.39 MiB/s, done. Resolving deltas: 100% (182/182), done. [sdickers@ghost test]$ cd ovirt-engine-ui-extensions/
[sdickers@ghost ovirt-engine-ui-extensions]$ yarn yarn install v1.19.1 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.9: The platform "linux" is incompatible with this module. info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "patternfly-react > table-resolver@3.3.0" has unmet peer dependency "redux@>= 3.0.0 < 4.0.0". [4/4] Building fresh packages... Done in 12.18s.
[sdickers@ghost ovirt-engine-ui-extensions]$ yarn build yarn run v1.19.1 $ yarn test $ yarn lint $ eslint . --ext js,jsx Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration . $ NODE_ENV=test jest --no-watch <snip the jest output> Test Suites: 5 passed, 5 total Tests: 52 passed, 52 total Snapshots: 0 total Time: 4.153s Ran all test suites. $ NODE_ENV=production webpack --config webpack.prod.js production webpack configuration: <snip the webpack output> Done in 46.59s.
[sdickers@ghost ovirt-engine-ui-extensions]$ ls -1 dist ui-extensions.json ui-extensions-resources ========
Make sure your node and yarn are all ok. I've never had the problem you are showing.
If still doesn't work, maybe you have webpack, babel, eslit or jest installed globally and it's getting picked up from the wrong place?
On Tue, Nov 12, 2019 at 8:44 AM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Yeah, it is installed successfully.
On Tue, Nov 12, 2019 at 6:41 PM Benny Zlotnik <bzlotnik@redhat.com> wrote:
did you run `yarn install`?
On Tue, Nov 12, 2019 at 12:35 PM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Team,
Any idea why am i facing this issue when i do yarn build for
ovirt-engine-ui-extensions
1:1 error Parsing error: 'import' and 'export' may appear only
with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-dom.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search-test.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
/home/ritesh/git/ui-extenstion/ovirt-engine-ui-extensions/src/utils/webadmin-search.js
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/2AUCPK6OE52DYE...
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/J4DCCXLVUHW67X...
-- Scott Dickerson Senior Software Engineer RHV-M Engineering - UX Team Red Hat, Inc
participants (3)
-
Benny Zlotnik
-
Ritesh Chikatwar
-
Scott Dickerson