Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Help needed: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node

$
0
0

Today I noticed that I can no longer build my app locally using ember build -prod. CI builds fine and ember server works without issues as well. This is the error I am seeing:

Build Error (Filter) in assets/auto-import-fastboot-4c714e85e4221f8fc7a6c5c479aab887.js

The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node


Stack Trace and Error Report: /var/folders/yt/kw3pd9l52sd9bbpjrlpm47rm0000gn/T/error.dump.0037d8464d97591f58ec1a4589a7e0b7.log

This is the error description from error.dump.0037d8464d97591f58ec1a4589a7e0b7.log

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
    at Object.writeFileSync (fs.js:1409:5)
    at asyncOutputFilteredFile (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/index.js:173:12)
    at tryCatch (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:538:13)
    at /Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:606:14
    at flush (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:2415:5)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

  - code: [undefined]
  - codeFrame: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
  - errorMessage: assets/auto-import-fastboot-4c714e85e4221f8fc7a6c5c479aab887.js: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
        in /var/folders/yt/kw3pd9l52sd9bbpjrlpm47rm0000gn/T/broccoli-39164X71aTw4kXt5G/out-666-broccoli_persistent_filter_fastboot_manifest_rewrite_brocco
        at Filter
  - errorType: Build Error
  - location:
    - column: [undefined]
    - file: assets/auto-import-fastboot-4c714e85e4221f8fc7a6c5c479aab887.js
    - line: [undefined]
    - treeDir: /var/folders/yt/kw3pd9l52sd9bbpjrlpm47rm0000gn/T/broccoli-39164X71aTw4kXt5G/out-666-broccoli_persistent_filter_fastboot_manifest_rewrite_brocco
  - message: assets/auto-import-fastboot-4c714e85e4221f8fc7a6c5c479aab887.js: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
        in /var/folders/yt/kw3pd9l52sd9bbpjrlpm47rm0000gn/T/broccoli-39164X71aTw4kXt5G/out-666-broccoli_persistent_filter_fastboot_manifest_rewrite_brocco
        at Filter
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: Filter
  - originalErrorMessage: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
  - stack: TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Node
    at Object.writeFileSync (fs.js:1409:5)
    at asyncOutputFilteredFile (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/index.js:173:12)
    at tryCatch (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:525:12)
    at invokeCallback (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:538:13)
    at /Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:606:14
    at flush (/Users/steve/code/myapp/myapp/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:2415:5)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

The only file that starts with auto-import-fastboot-* is

find . -name 'auto-import-fastboot*'
./dist/assets/auto-import-fastboot.js

which is empty.

I am not sure if this is a fastboot or auto-import related error. And I don’t have a clue why I am starting to see this locally, but not on CI. Any ideas what might be going on?

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles