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

Doesn't work on Ember 5 #566

Open
Pixelik opened this issue Dec 18, 2023 · 0 comments
Open

Doesn't work on Ember 5 #566

Pixelik opened this issue Dec 18, 2023 · 0 comments

Comments

@Pixelik
Copy link

Pixelik commented Dec 18, 2023

Clicking on <PikadayInput> on an Ember 5.4 SPA (Node 18.13) has no effect, the component is completely inactive.

I realised that it is probably because of #550

And since that fix has yet to be released for some reason, I installed the commit containing the fix directly:

// package.json

dependencies: {
  ......,
  ....,
  "ember-pikaday": "github:adopted-ember-addons/ember-pikaday#9471789a52dd6b3ed133df6d7834dfbfb010acb8"
}

Now when I run ember s the build breaks with:

ERROR Summary:

  - broccoliBuilderErrorStack: Error: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
    at Object.lstatSync (node:fs:1574:3)
    at symlink (/my-spa/node_modules/symlink-or-copy/index.js:127:26)
    at Function.symlinkOrCopySync [as sync] (/my-spa/node_modules/symlink-or-copy/index.js:101:5)
    at Funnel._copy (/my-spa/node_modules/broccoli-funnel/index.js:500:19)
    at Funnel.processFile (/my-spa/node_modules/broccoli-funnel/index.js:483:8)
    at Funnel.applyPatch [as _applyPatch] (/my-spa/node_modules/broccoli-funnel/index.js:396:12)
    at Funnel.<anonymous> (/my-spa/node_modules/broccoli-funnel/index.js:350:10)
    at Array.forEach (<anonymous>)
    at Funnel.processFilters (/my-spa/node_modules/broccoli-funnel/index.js:349:11)
    at Funnel.build (/my-spa/node_modules/broccoli-funnel/index.js:259:10)
    at TransformNodeWrapper.build (/my-spa/node_modules/broccoli/dist/wrappers/transform-node.js:71:39)
    at /my-spa/node_modules/broccoli/dist/builder.js:185:30
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Builder.build (/my-spa/node_modules/broccoli/dist/builder.js:204:13)
    at async Builder.build (/my-spa/node_modules/ember-cli/lib/models/builder.js:204:11)
  - code: [undefined]
  - codeFrame: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
  - errorMessage: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
        at Funnel
-~- created here: -~-
    at Funnel.Plugin (/my-spa/node_modules/broccoli-plugin/index.js:7:31)
    at new Funnel (/my-spa/node_modules/broccoli-funnel/index.js:57:10)
    at Funnel (/my-spa/node_modules/broccoli-funnel/index.js:54:43)
    at Class.treeForApp (/my-spa/node_modules/ember-pikaday/node_modules/@embroider/addon-shim/src/index.js:78:54)
    at Class._treeFor (/my-spa/node_modules/ember-cli/lib/models/addon.js:634:33)
    at Class.treeFor (/my-spa/node_modules/ember-cli/lib/models/addon.js:594:21)
    at /my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:547:26
    at Array.reduce (<anonymous>)
    at EmberApp._addonTreesFor (/my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:545:32)
    at EmberApp.addonTreesFor (/my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:569:17)
-~- (end) -~-
  - errorType: Build Error
  - location:
    - column: [undefined]
    - file: [undefined]
    - line: [undefined]
    - treeDir: [undefined]
  - message: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
        at Funnel
-~- created here: -~-
    at Funnel.Plugin (/my-spa/node_modules/broccoli-plugin/index.js:7:31)
    at new Funnel (/my-spa/node_modules/broccoli-funnel/index.js:57:10)
    at Funnel (/my-spa/node_modules/broccoli-funnel/index.js:54:43)
    at Class.treeForApp (/my-spa/node_modules/ember-pikaday/node_modules/@embroider/addon-shim/src/index.js:78:54)
    at Class._treeFor (/my-spa/node_modules/ember-cli/lib/models/addon.js:634:33)
    at Class.treeFor (/my-spa/node_modules/ember-cli/lib/models/addon.js:594:21)
    at /my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:547:26
    at Array.reduce (<anonymous>)
    at EmberApp._addonTreesFor (/my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:545:32)
    at EmberApp.addonTreesFor (/my-spa/node_modules/ember-cli/lib/broccoli/ember-app.js:569:17)
-~- (end) -~-
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: Funnel
  - originalErrorMessage: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
  - stack: Error: ENOENT: no such file or directory, lstat '/my-spa/node_modules/ember-pikaday/./dist/_app_/components/pikaday-input.js'
    at Object.lstatSync (node:fs:1574:3)
    at symlink (/my-spa/node_modules/symlink-or-copy/index.js:127:26)
    at Function.symlinkOrCopySync [as sync] (/my-spa/node_modules/symlink-or-copy/index.js:101:5)
    at Funnel._copy (/my-spa/node_modules/broccoli-funnel/index.js:500:19)
    at Funnel.processFile (/my-spa/node_modules/broccoli-funnel/index.js:483:8)
    at Funnel.applyPatch [as _applyPatch] (/my-spa/node_modules/broccoli-funnel/index.js:396:12)
    at Funnel.<anonymous> (/my-spa/node_modules/broccoli-funnel/index.js:350:10)
    at Array.forEach (<anonymous>)
    at Funnel.processFilters (/my-spa/node_modules/broccoli-funnel/index.js:349:11)
    at Funnel.build (/my-spa/node_modules/broccoli-funnel/index.js:259:10)
    at TransformNodeWrapper.build (/my-spa/node_modules/broccoli/dist/wrappers/transform-node.js:71:39)
    at /my-spa/node_modules/broccoli/dist/builder.js:185:30
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Builder.build (/my-spa/node_modules/broccoli/dist/builder.js:204:13)
    at async Builder.build (/my-spa/node_modules/ember-cli/lib/models/builder.js:204:11)

=================================================================================
@Pixelik Pixelik changed the title Doesn't work on Ember 5 anymore Doesn't work on Ember 5 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants