Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Issues
  • #260
Closed
Open
Issue created Feb 20, 2014 by Administrator@rootContributor

.sjs files are no longer resolved?

Created by: jlongster

It's been a little while since I've used sweet.js. It doesn't seem to resolve modules to files with the .sjs extension anymore:

$ npm install es6-macros
$ ls node_modules/es6-macros/index.sjs 
node_modules/es6-macros/index.sjs

$  sjs -m es6-macros app.sjs           

/Users/james/tmp/ppp/node_modules/sweet.js/node_modules/resolve/lib/sync.js:32
    throw new Error("Cannot find module '" + x + "' from '" + y + "'");
          ^
Error: Cannot find module 'es6-macros' from '/Users/james/tmp/ppp'

I also tried it with just a local file with the .sjs extension. Are we discouraged from using that now?

Assignee
Assign to
Time tracking