- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.1k
Open
Labels
kind: bugSomething isn't workingSomething isn't working
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/jgoz/turborepo-boundaries-import-attributes
Which canary version will you have in your reproduction?
2.5.9-canary.7
Environment information
CLI:
   Version: 2.5.9-canary.7
   Path to executable: /path/to/turborepo-boundaries-import-attributes/node_modules/.pnpm/[email protected]/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm
Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 9283
   Available CPU cores: 12
Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): vscode
   Terminal program version (TERM_PROGRAM_VERSION): 1.105.0
   Shell (SHELL): /opt/homebrew/bin/fish
   stdin: false
Expected behavior
Does not fail when parsing imports with attributes.
Actual behavior
Fails with error:
error: Expected ';', got 'with'
To Reproduce
Add a file, script.mjs:
import pkg from './package.json' with { type: 'json ' };
console.log(pkg.name)Run turbo boundaries
Output:
turbo boundaries
error: Expected ';', got 'with'
 --> /path/to/turborepo-boundaries-import-attributes/packages/pkg-a/script.mjs:1:34
  |
1 | import pkg from './package.json' with { type: 'json ' };
  |                                  ^^^^
Checked 1 files in 5 packages, 1 issue foundAdditional context
It looks like this was supposed to be fixed in #10078, but maybe there was a regression.
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't working