Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
This repository was archived by the owner on May 5, 2025. It is now read-only.

Failure to install via pnpm #18

Description

@taschik

Issue tracker is used for reporting bugs and requesting enhancements.

Expected Behavior

The package installs smoothly

Current Behavior

 Lockfile is up to date, resolution step is skipped
  Progress: resolved 1, reused 0, downloaded 0, added 0
  Packages: +915
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  Packages are hard linked from the content-addressable store to the virtual store.
    Content-addressable store is at: /home/runner/setup-pnpm/node_modules/.bin/store/v3
    Virtual store is at:             node_modules/.pnpm
  Progress: resolved 915, reused 0, downloaded 23, added 20
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install$ yarn install
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: yarn install v1.22.19
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: [1/4] Resolving packages...
  Progress: resolved 915, reused 0, downloaded 76, added 74
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: [2/4] Fetching packages...
  Progress: resolved 915, reused 0, downloaded 102, added 99
  Progress: resolved 915, reused 0, downloaded 119, added 120
  Progress: resolved 915, reused 0, downloaded 142, added 142
  Progress: resolved 915, reused 0, downloaded 219, added 214
  Progress: resolved 915, reused 0, downloaded 249, added 250
  Progress: resolved 915, reused 0, downloaded 268, added 267
  Progress: resolved 915, reused 0, downloaded 294, added 296
  Progress: resolved 915, reused 0, downloaded 321, added 324
  Progress: resolved 915, reused 0, downloaded 388, added 386
  Progress: resolved 915, reused 0, downloaded 445, added 444
  Progress: resolved 915, reused 0, downloaded 500, added 500
  Progress: resolved 915, reused 0, downloaded 573, added 573
  Progress: resolved 915, reused 0, downloaded 619, added 621
  Progress: resolved 915, reused 0, downloaded 651, added 654
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: [3/4] Linking dependencies...
  Progress: resolved 915, reused 0, downloaded 695, added 694
  Progress: resolved 915, reused 0, downloaded 807, added 806
  Progress: resolved 915, reused 0, downloaded 894, added 896
  Progress: resolved 915, reused 0, downloaded 905, added 909
  Progress: resolved 915, reused 0, downloaded 907, added 911
  Progress: resolved 915, reused 0, downloaded 910, added 914
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: [4/4] Building fresh packages...
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: $ run-s build
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > @datadog/rum-react-integration@1.0.0-alpha build /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1920_a8ef1f1a5aa3148c57ca1b791a675bfd
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > run-p build:cjs build:esm build:bundle
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > @datadog/rum-react-integration@1.0.0-alpha build:esm /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1920_a8ef1f1a5aa3148c57ca1b791a675bfd
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > rm -rf esm && tsc -p tsconfig.esm.json
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > @datadog/rum-react-integration@1.0.0-alpha build:cjs /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1920_a8ef1f1a5aa3148c57ca1b791a675bfd
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > rm -rf cjs && tsc -p tsconfig.cjs.json
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > @datadog/rum-react-integration@1.0.0-alpha build:bundle /home/runner/setup-pnpm/node_modules/.bin/store/v3/tmp/_tmp_1920_a8ef1f1a5aa3148c57ca1b791a675bfd
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > rm -rf bundle && webpack --mode=production
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: assets by status 363 bytes [cached] 1 asset
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: ./src/index.ts 388 bytes [built] [code generated] [1 error]
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: ERROR in ./src/index.ts 1:12
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: Module parse failed: Unexpected token (1:12)
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: 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
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: > import type { RumPublicApi } from '@datadog/browser-rum-core'
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: | 
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: | export { ErrorBoundary } from './ErrorBoundary'
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: webpack 5.28.0 compiled with 1 error in 491 ms
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install:  ELIFECYCLE  Command failed with exit code 1.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install:  ELIFECYCLE  Command failed.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install:  ELIFECYCLE  Command failed.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: ERROR: "build:bundle" exited with 1.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install:  ELIFECYCLE  Command failed with exit code 1.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: ERROR: "build" exited with 1.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: error Command failed with exit code 1.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
  ...1920_a8ef1f1a5aa3148c57ca1b791a675bfd yarn-install: Failed

Steps to Reproduce

Create a Github action that runs the following:

name: Test
on: push
jobs:
  test:
    name: Run tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 14.17.0
      - uses: pnpm/action-setup@v2
        with:
          version: 7.29.1
          run_install: |
            - recursive: false
              args: [--frozen-lockfile]
      - name: run tests
        run: pnpm run quick-test

With
"@datadog/rum-react-integration": "https://github.com/DataDog/rum-react-integration-examples"
as a dependency in your package.json

Context (Environment)

It is not possible to install this package due to an error Module parse failed: Unexpected token (1:12)

Node Version 14.17.0
pnpm 7.29.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions