Skip to content

Fix regression introduced with Typescript #2144

@christianlupus

Description

@christianlupus

With 601de51 a regression was introduced into the code base. I do not know why the CI did not trigger a warning/error but with that commit the check of eslint fails.

To check this, simply checkout the corresponding commit and run npm ci && npm run eslint. Eslint reports a dozen errors like this:

/home/christian/Dokumente/nextcloud-docker-dev/workspace/server/apps-extra/cookbook/src/components/AppControls/AppControls.vue
  201:23  error  Unexpected use of file extension "js" for "@nextcloud/vue/dist/Components/NcActions.js"       import/extensions
  202:28  error  Unexpected use of file extension "js" for "@nextcloud/vue/dist/Components/NcActionButton.js"  import/extensions
  204:22  error  Unexpected use of file extension "js" for "@nextcloud/vue/dist/Components/NcButton.js"        import/extensions
  205:27  error  Unexpected use of file extension "js" for "@nextcloud/vue/dist/Components/NcActionInput.js"   import/extensions
  206:27  error  Unexpected use of file extension "js" for "@nextcloud/vue/dist/Components/NcLoadingIcon.js"   import/extensions

Just dropping the extension from the import statements will render the app non-buildable. For the parent commit, the linter seems to be perfectly happy.

As I am not used to and not experienced with typescript, could you have a look, @seyfeb?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendIssue or PR related to the frontend codebugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions